﻿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
32174	Error page can sometimes be very slow	Anders Hovmöller		"I hit a case in development today where the error page took over 20 seconds to render. After a bit of digging it happened for a few reasons:

- fairly deep call chain (20)
- the same arguments being passed down many levels
- those arguments contained querysets
- the querysets had reprs that accessed a related object

These things in combination resulted in almost 5000 database accesses. 

I have a patch for this that can avoid this. It's pretty simple as the debug pretty printer goes through the entire stack in one for loop so it's easy to cache the sub-results."	Cleanup/optimization	closed	Error reporting	3.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
