It’s a mess, i have tried to solve this issue an i am getting crazy.
Firstrly hypertable needs all PK contains partition collumn, in this case time, and in the other hand DJango does not allow create multi collumn PK so you can’t create a PK that could contains the time collumn.
Sencond: If i have rows with repeated time, it will breaks unique constraints in time collumn.
So my question is, how true is that you can use DJango and TimescaleDB together and make use of hypertables ?
I have tried to create a table with time as primary key and eventually I have got duplicate key error inserting data in the table
XandrOSS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.