Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides Django database tuning via profiling, query-plan review, index, ORM, batching, and pagination fixes, one measured change at a time.
45% 64%+18 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
Record these before making changes:
| Symptom | Likely Cause | Next Skill |
|---|---|---|
| Query count grows with rows rendered | N+1 related-object loading | django-orm-query-optimization |
| One query dominates DB time | Missing index, poor join order, bad filter shape | django-query-plan-reading, then django-index-design |
| View is fast for page 1 and slow for high page numbers | Offset pagination cost | django-pagination-performance |
| Worker memory spikes while looping rows | QuerySet result cache or model instantiation | django-queryset-batch-processing |
| Code counts, sums, or flags inside Python loops | Work should move to SQL expressions | django-db-side-computation |
| Dashboard/report query is slow but can be stale | Precomputed read model | django-materialized-views |
| Local reproduction unclear | Missing trace or representative data | django-query-profiling |
prefetch_related() to a queryset that later calls a different filtered related manager.only() or defer() and then touching the deferred fields in a loop.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.