May 25 2015

Squashing and optimizing migrations in Django

published by Piotr MaliƄski
in blog RkBlog - Python, Linux, Astronomy
original entrySquashing and optimizing migrations in Django

django web framework tutorials

With Django 1.7 we got built in migrations and a management command to squash a set of existing migrations into one optimized migration - for faster test database building and to remove some legacy code/history. Squashing works, but it still has some rough edges and requires some manual work to get the best of a squashed migration. Here are few tips for squashing and optimizing squashed migrations.

Tag cloud

Social Sharing