Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnose and improve slow Django database-backed endpoints with evidence-first profiling, query-plan review, index selection, ORM loading fixes, batching, database-side computation, materialized views, and pagination choices. Use when a Django view, API, job, report, queryset, or database query is slow and the right optimization path is not obvious.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-06 | ✓→✓ | = Same ✓ | -5% | 0% |
Use this as the orchestration skill for Django database performance work. Start with measured evidence, reproduce the slow path, and route to the smallest optimization that changes the measured bottleneck.
connection.queries, or targeted logging.QuerySet.explain() or database EXPLAIN.django-orm-query-optimization.django-query-plan-reading and django-index-design.django-queryset-batch-processing.django-db-side-computation.django-materialized-views.django-pagination-performance.django-query-profiling.See diagnostic-flow.md for routing checklists, common symptoms, and before/after evidence templates.
QuerySet.explain() for ORM query plans before dropping to raw EXPLAIN.AddIndexConcurrently over hand-written concurrent index SQL when they fit.Subquery, Exists, Window, GeneratedField, and db_default when they make database work explicit and portable enough.Other measured skills in the registry, with their headline benchmark lift.