#36605: Support chaining `QuerySet.in_bulk()` after `.values()` or
`.values_list()`
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Adam
| Johnson
Type: New feature | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):
In [changeset:"46bd92274c57fd6f138c067562696092732cec59" 46bd9227]:
{{{#!CommitTicketReference repository=""
revision="46bd92274c57fd6f138c067562696092732cec59"
Refs #36605 -- Optimized QuerySet.in_bulk() for the empty id_list case.
Now that the setup is a bit more expensive, it makes sense to return
earlier
for the empty case.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36605#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/0107019980ee07eb-4646e092-92e3-40d0-9e5c-80d1c6a54400-000000%40eu-central-1.amazonses.com.