Re: Slowness of the resulting squashed migration

2015-04-27 Thread aRkadeFR
Thanks for the answer. Right now, I just know that after squashing some migrations, it created a squashed migrations with CreateModel + AlterField and AddField after that runs on 5seconds, and now that I put all the field in the CreateModel without any AlterField or AddField, it runs on

Re: Slowness of the resulting squashed migration

2015-04-24 Thread Markus Holtermann
Hi, In principle it is possible to write your own or modify existing migrations unless they are already applied. Regarding the additional AddField() operations: in case you have e.g. circular references between two models Django cannot add both models with their full columns at the same time.

Slowness of the resulting squashed migration

2015-04-24 Thread aRkadeFR
Hello, After working on a project and having around 10 migrations per app, I wanted to refactor some migrations (of the same app) into only one and have a faster migrations while testing. I did squashmigrations on many of the migrations, but the resulting squased migration is still pretty slow