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 <2seconde
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.
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 (
3 matches
Mail list logo