﻿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
26867	Migrate very slow	Hugo Tácito	nobody	"When I have to run migrations between the change of modules it gets very slow.

Example:

Applying financial.010_auto_20150819_1451... OK (24.984s)
'''(wait 5 minutes)'''
Applying fleet.00120_auto_20150819_1451... OK (17.156s)
Applying fleet.00121_auto_20150819_1451... OK (10.234s)
Applying fleet.00122_auto_20150819_1451... OK (09.352s)
Applying fleet.00123_auto_20150819_1451... OK (14.471s)
'''(wait 5 minutes)'''
Applying parking.0054_auto_20150819_1451... OK (11.604s)
'''(wait 5 minutes)'''
Applying poll.0085_auto_20150805_1413... OK (9.664s)
Applying poll.0086_auto_20150819_1451... OK (34.831s)
'''(wait 5 minutes)'''
Applying protocol.0021_auto_20150819_1451... OK (10.068s)

I think this happens because after the first migration is executed, the 'migrate' command reloads all models again for each subsequent migration, without ignoring the migrations that was already run in previous 'migrate' commands."	Cleanup/optimization	closed	Migrations	1.9	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
