Using TypeORM with TimescaleDB hypertables requires some additional work besides the usual operations needed to use a PostgreSQL data source. This is because: To make this work, you can do the following: This will satisfiy both TypeORM’s need to have a unique primary key across the whole table, as well as Timescale’s requirement that the primary key contains the table’s partition key. Example In Ping.ts (entity definition file): In the
Continue reading