Catalog / Skills

Django DB-Side Computation

Move Django performance-sensitive Python loops into database-side computation with annotations, aggregates, filtered aggregates, F expressions, functions, Subquery, OuterRef, Exists, Window expressions, db_default, and GeneratedField. Use when Django code counts, sums, filters, flags, ranks, or derives values in Python after fetching rows.

Djangov0.1.0MITdjangodatabaseaggregationormanalytics

Install

npx skills add LVTD-LLC/skills --skill django-db-side-computation

From `SKILL.md`

Use this skill when Django fetches rows into Python to compute values the database can compute more efficiently or more consistently.