#36290: Unnecessary query performed when prefetching nullable foreign key
relationships
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  prefetch_related     |             Triage Stage:  Ready for
  foreign object key null            |  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@…>):

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

Comment:

 In [changeset:"f7f38f3a0b44d8c6d14344dae66b6ce52cd77b55" f7f38f3]:
 {{{#!CommitTicketReference repository=""
 revision="f7f38f3a0b44d8c6d14344dae66b6ce52cd77b55"
 Fixed #36290 -- Made TupleIn() lookup discard tuples containing None.

 Just like the In() lookup discards of None members TupleIn() should
 discard tuples containing any None as NULL != NULL in SQL and the
 framework expects such queries to be elided under some circumstances.

 Refs #31667, #36116.

 Thanks Basptise Mispelon for bisecting the regression to 626d77e.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36290#comment:4>
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 visit 
https://groups.google.com/d/msgid/django-updates/01070195fd574b71-69b4d719-dbc2-4b69-ac50-0da3b236e153-000000%40eu-central-1.amazonses.com.

Reply via email to