1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00
django/docs/ref/models
Simon Charette 9f3cce172f Refs #26430 -- Re-introduced empty aggregation optimization.
The introduction of the Expression.empty_aggregate_value interface
allows the compilation stage to enable the EmptyResultSet optimization
if all the aggregates expressions implement it.

This also removes unnecessary RegrCount/Count.convert_value() methods.
Disabling the empty result set aggregation optimization when it wasn't
appropriate prevented None returned for a Count aggregation value.

Thanks Nick Pope for the review.
2021-07-02 07:25:42 +02:00
..
class.txt
conditional-expressions.txt
constraints.txt
database-functions.txt
expressions.txt Refs #26430 -- Re-introduced empty aggregation optimization. 2021-07-02 07:25:42 +02:00
fields.txt
index.txt
indexes.txt
instances.txt Fixed #32755 -- Corrected Model.get_absolute_url() example in docs. 2021-05-18 11:30:38 +02:00
lookups.txt
meta.txt
options.txt
querysets.txt Fixed #32381 -- Made QuerySet.bulk_update() return the number of objects updated. 2021-06-29 06:58:46 +02:00
relations.txt