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
Large tables are maintained with timescaledb extension:
Create model and migrate as usual with django manage.py. You might want to define the id field like this to avoid problem with big tables:
id = models.BigIntegerField(unique=True, primary_key=True)
Then copy the structure of the table but not the indexes:
CREATETABLEihr_delay_alarms_new (LIKE ihr_delay_alarms INCLUDING DEFAULTS INCLUDING CONSTRAINTS EXCLUDING INDEXES);
Set the proper tablespace:
ALTERTABLE ihr_delay_alarms_new SET TABLESPACE nas0_slow_tablespace ;