Django annotate() vs aggregate(): Performance Traps and Fixes

DEV · 18.11.2026 · 05:18

aggregate() and annotate() both push calculations into the database, but they answer different questions. The difference aggregate() annotate() Returns A dictionary, one row A queryset, one…

Читать в источнике