﻿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
29899	Adapt the auto-detector to detect changes from model states instead of model classes	Simon Charette	David Wobrock	"Rendering models for the sole purpose of detecting changes between them takes a significant amount of time on large project.

Instead of comparing the fake models rendered from the state generated by applying `state_forwards` of all existing migrations against the current model state generating model states from the current model classes and comparing both would shave off a model rendering phase.

This was extracted from the meta ticket #22608 which tracks slow parts of the migration framework.

An initial and dusty stab at this can be found here https://github.com/django/django/compare/master...charettes:autodetector-model-states

Note that this has a bit of overlap with #29898 because both optimizations require a way to resolve relations efficiently from model states."	Cleanup/optimization	closed	Migrations	dev	Normal	fixed		Simon Charette David Wobrock	Ready for checkin	1	0	0	0	0	0
