#21760: prefetch_related uses an inefficient query to get the related fk data -------------------------------------+------------------------------------- Reporter: valtron2000@… | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 1.6 (models, ORM) | Resolution: Severity: Normal | 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 intgr): I am in the process of migrating an app from Django 1.5 to 1.6; this regression also affects us (it did not occur in 1.5). I can confirm that the attached patch fixes this issue when applied on top of Django 1.6.2. Can it be included in 1.6.3? -- Ticket URL: <https://code.djangoproject.com/ticket/21760#comment:8> 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.d66c17929ccf703200980f8ef589db3d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.