﻿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
17156	QuerySet.__contains__ needs documentation	Thomas Güttler	nobody	"The documentation should explain what happens in this code:
{{{
if obj in queryset:
    ....
}}}

If queryset is huge, the above code can be very slow.

If you want to run the code in the database, you should use this:
{{{
if queryset.filter(pk=obj.pk).exists():
    ....
}}}

Related discussion: http://groups.google.com/group/django-users/browse_thread/thread/5a8196ff1086f4ae/530548a127a6e3ca

Can someone please provide a patch for the documentation. I am not a native speaker, and won't find the right words."	Cleanup/optimization	closed	Documentation	1.3	Normal	fixed		hv@… sebastian.goll@…	Accepted	1	0	0	0	0	0
