﻿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
27310	Refactor RenameModel.state_forwards to avoid relying on state.apps.	Simon Charette	nobody	"`RenameModel` is the only built-in operation to rely on `state.apps` during `state_forwards`. Accessing `state.apps` can trigger model class rendering which is the main cause of slowdown during migration execution.

While I'm aware Markus has been working on making the migration framework completely `state.apps` agnostic (the only exception being `RunPython` operations) fixing `RenameModel.state_forwards` alone seems like a more attainable goal with direct benefits as `state_forwards()` is meant to be called way more often then `database_forwards()` in a project lifetime."	Cleanup/optimization	closed	Migrations	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
