You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently ship a lot of migrations that are run in order; even on new instances. I suggest shipping 1.0 with squashed migrations and removing the old migrations with the next version. There would need to be a check that versions below 0.x can not be upgraded to a version > 1.x
I made a POC of how that could look like. For this to happen we need at least a week or so of database change freeze to
a) make the patch (will take a few hours probably)
b) have the change running for a few days to be sure it does not destroy instance
@matmair that looks nice, I was expecting we'd have to have a breaking change here but, if I read it correctly, this is a "drop in" replacement for an existing setup?
I'd like to ensure we have #4973 working before this point
Activity
matmair commentedon Jun 14, 2023
I made a POC of how that could look like. For this to happen we need at least a week or so of database change freeze to
a) make the patch (will take a few hours probably)
b) have the change running for a few days to be sure it does not destroy instance
SchrodingersGat commentedon Jun 15, 2023
@matmair that looks nice, I was expecting we'd have to have a breaking change here but, if I read it correctly, this is a "drop in" replacement for an existing setup?
I'd like to ensure we have #4973 working before this point
matmair commentedon Jun 15, 2023
@SchrodingersGat yes, that is the idea. Will speed up startups as well in my experience.
matmair commentedon Dec 26, 2024
@SchrodingersGat I would start working on this if there are no objections. Is this clear to go?
SchrodingersGat commentedon Dec 26, 2024
@matmair sounds good :) We will have to treat this one very carefully
github-actions commentedon Apr 15, 2025
This issue seems stale. Please react to show this is still important.
Squash migrations for 1.0
[-]Squash migrations for 1.0[/-][+]Squash migrations for better performance[/+]matmair commentedon Jul 2, 2025
Full transparency: I did not get this working in 4 or 5 attempts due to circular import issue and wired postgres warnings.
Maybe we need to simplify a few dependencies between apps and start out fresh with something like https://django-remake-migrations.readthedocs.io
SchrodingersGat commentedon Jul 4, 2025
Yes it's a tough one for sure. Let's reconsider, it's still "workable" even if there are performance improvements to be had.
SchrodingersGat commentedon Sep 9, 2026
New attempt in #12830