#36116: prefetch_related() selects too many objects from a related table with a
composite primary key and hidden related name
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * cc: Simon Charette (added)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted

Comment:

 Thanks for surfacing Jacob, glad we foresaw this one in
 cb83448891f2920c926f61826d8eae4051a3d8f2.

 Tentatively elevating to release blocker as
 [https://docs.djangoproject.com/en/5.2/topics/composite-primary-key
 /#composite-primary-keys-and-relations we've opted to start documenting]
 `ForeignObject`'s usage with `CompositePrimaryKey` and I would expect
 users to run into this problem as well.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36116#comment:1>
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/0107019481584134-fa674b6e-4f19-4122-b348-9daf077a76d9-000000%40eu-central-1.amazonses.com.

Reply via email to