#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:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

 * cc: Simon Charette (added)

Comment:

 Hello Jacob, thank you for the report and for providing a test! I'm having
 a bit of an issue when running the test, it seems to hang and never
 finishes. I've waited over 15 minutes. I have printed the values used in
 the tests and I have:
 {{{
 connection.features.max_query_params=250000
 num_requiring_batching=125001
 }}}
 while high, these do not seem impossible. Specifically, the line that
 hangs is:
 {{{
 Comment.objects.in_bulk(id_list=id_list)
 }}}
 I would like to understand more about what/why this is happening before
 accepting. Is this failing for you on `main` without your proposed fix? Or
 is it hanging as well?
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36416#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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701970cd7f01d-6e3a6297-85fe-4b2c-937a-fc793860a0a9-000000%40eu-central-1.amazonses.com.

Reply via email to