#32948: Optimise Q combination and inversion
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  Nick Pope
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     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
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"9dff316be41847c505ebf397e4a52a0a71e0acc4" 9dff316b]:
 {{{
 #!CommitTicketReference repository=""
 revision="9dff316be41847c505ebf397e4a52a0a71e0acc4"
 Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q()
 objects.

 Node.create() which has a compatible signature with Node.__init__()
 takes in a single `children` argument rather than relying in unpacking
 *args in Q.__init__() which calls Node.__init__().

 In addition, we were often needing to unpack iterables into *args and
 can instead pass a list direct to Node.create().
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32948#comment:14>
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/010701823ed38d71-59ce798c-9429-44f8-b855-082e97330f7b-000000%40eu-central-1.amazonses.com.

Reply via email to