Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Read and compare Django/PostgreSQL query execution plans using QuerySet.explain(), EXPLAIN, EXPLAIN ANALYZE, scan types, joins, estimates, actual timing, buffers, and row counts. Use when one SQL query dominates Django latency or when an index, ORM rewrite, pagination change, or materialized view needs proof from a query plan.
.claude/skills/hashgraph-online-django-query-plan-reading/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 10% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -7% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -42% | 0% |
Use this skill when the expensive unit is a specific SQL statement or queryset. The goal is to explain why the database is doing work, not to guess from the ORM code.
queryset.explain() for ORM-owned SQL.EXPLAIN for raw SQL, views, materialized views, or SQL copied from logs.analyze=True only in a safe environment because the database executes the query.django-index-design.django-db-side-computation or django-materialized-views.django-pagination-performance.See explain-checklist.md for plan-reading cues and before/after review notes.
EXPLAIN ANALYZE executes the query. Avoid it for mutations, unsafe functions, and production paths unless you know the impact.Finish with the before/after plan excerpt and a plain explanation of which node changed and why that matters.
Other measured skills in the registry, with their headline benchmark lift.