reporting-optimization
Installation
SKILL.md
Decision Tree
Need query optimization? → Use EXPLAIN ANALYZE
Need cached aggregations? → Use Materialized View
Need complex breakdown? → Use CTEs
Need row ranking? → Use Window Functions
Need partial coverage? → Use Partial Index
Reporting & Optimization Guidelines
Reporting queries often scan large datasets. Inefficient queries can degrade the performance of the entire system. Follow these guidelines to ensure speed and stability.