#30473: len() and count() yield different results on randomly ordered QuerySet 
with
annotation,
-------------------------------------+-------------------------------------
     Reporter:  Tobias Kunze         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * status:  new => closed
 * version:  2.2 => master
 * resolution:   => duplicate


Comment:

 Thanks for the report. I would say that this is a duplicate of #26390,
 because this inconsistent behavior is due to the fact `order_by('?')`
 breaks queryset aggregations.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30473#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.419d2bfbf8e2325a58119522c2eb0460%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to