#31792: Use `EXISTS(SELECT 1 ...)` for subqueries
-------------------------------------+-------------------------------------
     Reporter:  w0rp                 |                    Owner:  Simon
         Type:                       |  Charette
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51297a92324976a704279b567ec4f80bb92d7b60" 51297a9]:
 {{{
 #!CommitTicketReference repository=""
 revision="51297a92324976a704279b567ec4f80bb92d7b60"
 Fixed #31792 -- Made Exists() reuse QuerySet.exists() optimizations.

 The latter is already optimized to limit the number of results, avoid
 selecting unnecessary fields, and drop ordering if possible without
 altering the semantic of the query.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31792#comment:6>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.262a6f807a774518f78fcff68df513a2%40djangoproject.com.

Reply via email to