﻿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
2277	Change manipulator fires a huge number of queries	Antti Kaihola	nobody	"In some cases a change manipulator runs an insane number of queries (in my case almost 4000) when a foreign key relation is specified in the follow= keyword.

I've experienced this in a situation not unlike the following:

{{{
model A
model B: foreign keys to models A and C
model C: foreign key to model D
model D
}}}

When I do {{{A.ChangeManipulator(id, follow={'b': {c: {'id': True, 'd': False} } })}}}, I get lots and lots of queries for D, even multiple queries per ID.

{{{a.ChangeManipulator(id, follow={'b': {c: False} })}}} runs well, but doesn't work for me since I need some simple fields from C.

In IRC, ubernostrum mentioned that malcolm has been investigating the same issue."	defect	closed	contrib.admin		normal	wontfix		freakboy3742@…	Accepted	0	0	0	0	0	0
