#21760: prefetch_related uses an inefficient query to get the related fk data -------------------------------------+------------------------------------- Reporter: valtron2000@… | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.6 (models, ORM) | Resolution: fixed Severity: Release blocker | Triage Stage: Accepted Keywords: prefetch_related | Needs documentation: 0 ForeignKey | Patch needs improvement: 0 Has patch: 1 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by Loic Bistuer <loic.bistuer@…>): In [changeset:"1252b77824639fba398cf70586bdd75c42f86fdf"]: {{{ #!CommitTicketReference repository="" revision="1252b77824639fba398cf70586bdd75c42f86fdf" [1.6.x] Fixed #21760 -- prefetch_related used an inefficient query for reverse FK. Regression introduced by commit 9777442. Refs #21410. Conflicts: tests/prefetch_related/tests.py Backport of d3b71b976d from master }}} -- Ticket URL: <https://code.djangoproject.com/ticket/21760#comment:16> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/079.4520ee839926ca78df53940eb408c200%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.