#35442: QuerySet.only() causes n+1 queries with reverse foreign key relation
when
related id is not included.
-------------------------------------+-------------------------------------
Reporter: REGNIER Guillaume | Owner: Samriddha
| Kumar Tripathi
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(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
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"040bb3eba72eb45020dd025d3f83094a0fcaf22f" 040bb3eb]:
{{{#!CommitTicketReference repository=""
revision="040bb3eba72eb45020dd025d3f83094a0fcaf22f"
Fixed #35442 -- Prevented N+1 queries in RelatedManager with only().
Co-authored-by: Simon Charette <[email protected]>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35442#comment:22>
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/0107019bb8947d23-7a09a224-8ce4-4ed5-9faf-2b3627f3b330-000000%40eu-central-1.amazonses.com.