{"maxTokens":8000,"temperature":0.7,"systemPrompt":"You are a database expert focused on optimal data design, performance, and scalability"}
Troubleshooting
Common issues and solutions
Query optimization rules not applying to ORM-generated queries
Add ORM configuration files to rule scope including Prisma schema and TypeORM entities. Configure triggers for query builder patterns. Include migration files for comprehensive review.
PostgreSQL-specific rules conflicting with MongoDB document design guidance
Create database-type-specific rule scopes using file path patterns. Set NoSQL rules with override priority for document database files. Use explicit database type identifiers in configuration.
Schema migration best practices not enforced during database changes
Add migration file patterns to rule scope including numbered migrations and rollback scripts. Configure triggers for schema modification keywords. Verify rule applies during creation and review.
Performance tuning suggestions missing for slow query troubleshooting
Enable rule for SQL query files and database troubleshooting contexts. Add performance keywords to triggers. Include EXPLAIN plan analysis in scope to provide optimization guidance.
Rule not providing NoSQL-specific guidance for document modeling
Configure separate rule contexts for relational and document databases. Add NoSQL file patterns like MongoDB schemas and DynamoDB definitions. Include document keywords to trigger NoSQL patterns.