Firstly hypertable needs all PK contains partition column, in this case time, and in the other hand Django does not allow create multi column PK so you can’t create a PK that could contains the time column.
Second: if I have rows with repeated time, it will break unique constraints in time column.
How can you 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.