Filter Performance Benchmarker
Benchmarks and optimizes Django ORM filters by generating bulk datasets and analyzing query execution plans with EXPLAIN ANALYZE.
The filter_benchmark skill is a specialized tool for developers working with large-scale Django applications like Saleor. It automates the complex workflow of performance testing database filters, allowing users to generate hundreds of thousands of realistic data points, extract the resulting SQL from the ORM, and perform deep query plan analysis. By identifying sequential scans, missing indexes, and suboptimal query paths before they reach production, this skill ensures that GraphQL filters and dashboard queries remain efficient as data scales.
主要功能
01Direct extraction of raw SQL queries from Django ORM QuerySets for inspection.
026 GitHub stars
03Automated bulk data generation using optimized Django bulk_create and bulk_update patterns.
04Comprehensive performance reporting with links to interactive visualization tools like Dalibo.
05Comparison of query plans with and without forced index usage to verify optimization.
06Integrated EXPLAIN ANALYZE execution to identify sequential scans and index misses.
使用场景
01Verifying index efficiency when adding new complex filters to high-traffic GraphQL APIs.
02Simulating production-scale datasets to identify slow-running dashboard queries.
03Generating migration scripts for concurrent index creation based on query bottlenecks.