Back to Developer Roadmap

Aggregations

src/data/roadmaps/django/content/[email protected]

4.0939 B
Original Source

Aggregations

Aggregations in Django allow you to summarize data from multiple objects in your database. They compute a single summary value (like average, sum, or count) for a group of objects. Unlike annotations, which add a field to each object in a queryset, aggregations return a single value for the entire queryset. So, annotations add extra data to each item, while aggregations give you a summary of the whole collection.

Visit the following resources to learn more: