﻿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
24397	Speed up model rendering with apps.ready = False	Marten Kenbeek	Marten Kenbeek	"Whenever a model is rendered, the cache of several values in `model._meta` is cleared on each known model. This has a severe performance impact when rendering large amounts of models.

When `apps.ready` is `False`, the cache of model meta options is not cleared. This speeds up the initial rendering of the test suite significantly. The cache can then be cleared manually when all models are rendered, and `apps.ready` can be set back to`True`. 

Results timing `django.test.runner.DiscoverRunner.setup_databases`:
{{{
apps.ready == True  - 42 seconds
apps.ready == False - 16 seconds
}}}"	Cleanup/optimization	closed	Migrations	dev	Normal	fixed		Marten Kenbeek	Ready for checkin	1	0	0	0	0	0
