﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16937	Prefetch related objects	Luke Plant	nobody	"Related to #6432, here is a patch that adds a 'prefetch_related' method to `QuerySet`. This method causes the requested related objects to be retrieved in a single batch when the main `QuerySet` is evaluated.

The result is that the O(n) performance problem often related with M2M and reverse foreign key can be eliminated, at least for the simple but common case when you just want to use `.all()` and not do further filtering. Obviously it should be used with care, like select_related.


"	New feature	closed	Database layer (models, ORM)	1.3	Normal	fixed		jdunck@… cg@… lists@… django@…	Ready for checkin	1	0	0	0	0	0
