#35442: N+1 queries from RelatedManager + only("pk")
-------------------------------------+-------------------------------------
Reporter: REGNIER Guillaume | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):
Hey Simon, thank you for your message. I fail to see how Django is at
fault here, considering that there are alternative usages of the ORM and
its queries to accomplish the same result (as far as we understand the use
case) that would not execute N+1 queries. This seems like a (likely?) dupe
of #20923 which was closed as `wontfix`.
--
Ticket URL: <https://code.djangoproject.com/ticket/35442#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 on the web visit
https://groups.google.com/d/msgid/django-updates/0107018f63b983e6-caa02e3a-2c4a-4098-b5a7-914e0137fdbd-000000%40eu-central-1.amazonses.com.