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
What is a method to migrate an existing table to use range partitioning? Can this be added into the documentation?
My SensorData table has about 400M rows (73gb) so space matters (indexes are about 20gb). I need to make sure indexes get dropped, then data copied to the new table with partitions, and finally indexes created on the partitioned table. This needs to happen over several migrations (or a non-atomic migration) so space can be freed.
I've tried a couple of approaches and all seem to fail with some problem around the indexes and ForeignKey constraints. I really want the final django object and table to end up the same names.
The text was updated successfully, but these errors were encountered:
This is such a complex problem that it would be dangerous for this package to try to support this. You should solve this outside Django use state-only migration operations to bring Django up to date with reality.
What is a method to migrate an existing table to use range partitioning? Can this be added into the documentation?
My SensorData table has about 400M rows (73gb) so space matters (indexes are about 20gb). I need to make sure indexes get dropped, then data copied to the new table with partitions, and finally indexes created on the partitioned table. This needs to happen over several migrations (or a non-atomic migration) so space can be freed.
I've tried a couple of approaches and all seem to fail with some problem around the indexes and ForeignKey constraints. I really want the final django object and table to end up the same names.
The text was updated successfully, but these errors were encountered: