Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Sources
Destinations
Transforms
Builds
ExamplesDestinationsTime SeriesTimescale Db

Timeseries Timescale Dest Overwrite Truncate

Overwrite a Timescale hypertable in place with TRUNCATE + append instead of the temp-table swap.

Needs
timescaledb
Prerequisite
none. Run it twice: the table keeps 4 rows, and its chunks, indexes and grants survive the overwrite.
Check
SELECT count(*) FROM public.sensor_truncate;

SELECT * FROM timescaledb_information.hypertables WHERE hypertable_name = 'sensor_truncate';

Field reference for Timescale Db