#34450: Lookup expressions across foreign keys introduce extra joins
-------------------------------------+-------------------------------------
     Reporter:  Roman Odaisky        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  4.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 `QuerySet.filter` results in a single `Query.add_q` so I'm not sure that
 comparing the effect of two distinct `add_q` call should be the area of
 focus here as the latter is more alike to `filter()` chaining calls (e.g.
 `QuerySet.filter().filter()`) which has different semantic when dealing
 with multi-valued relationships.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34450#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018737d8c6ec-b54f6ff2-1f0f-4a0d-bc88-4b9769baa08f-000000%40eu-central-1.amazonses.com.

Reply via email to