#36416: id_list argument to in_bulk() does not account for composite primary 
keys
when batching
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

 * cc: Csirmaz Bendegúz (added)
 * stage:  Unreviewed => Accepted

Comment:

 Replying to [comment:4 Jacob Walls]:
 > I left a
 [https://github.com/django/django/pull/19502#discussion_r2105896691 note]
 here that I believe the slowness is simply due to the unfixed #36380 (and
 I added mocking in order to avoid creating such a large batch either way).
 The draft test finishes for me when I apply the fix for #36380 -- sorry I
 didn't pull these pieces together into the ticket description.

 Thank you, I missed this. When running the given test with the fixes for
 #36380, I also get the `django.db.utils.OperationalError: too many SQL
 variables`.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36416#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 visit 
https://groups.google.com/d/msgid/django-updates/010701970e6deb16-ac80d3e0-c336-4879-8496-23c99c8d7b98-000000%40eu-central-1.amazonses.com.

Reply via email to