#28312: ModelChoiceIterator uses cached length of queryset.
-------------------------------------+-------------------------------------
     Reporter:  Sjoerd Job Postmus   |                    Owner:  François
                                     |  Freitag
         Type:  Bug                  |                   Status:  closed
    Component:  Forms                |                  Version:  1.8
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

 In [changeset:"d1413c5d703c60dfb9e2a418c79b3e4aed32ffac" d1413c5]:
 {{{
 #!CommitTicketReference repository=""
 revision="d1413c5d703c60dfb9e2a418c79b3e4aed32ffac"
 Refs #28312 -- Added an optimized __bool__() to ModelChoiceIterator.

 COUNT is more expensive than EXISTS; use the latter when possible.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28312#comment:11>
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/067.8c3cdc23a2c87386b876bf5065fabd13%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to