Having 3 files with one data set of daily data inside:
2019-09-11.txt
2019-09-12.txt
2019-09-13.txt
Having lines like:
2019-09-11 15:59:37.459802,1
2019-09-11 15:59:38.959802,1
[...]
The files are sorted by a timestamp, which is the main index in the hypertable:
CREATE TABLE IF NOT EXISTS l1(
timestamp TIMESTAMP(6) NOT NULL,
data INT
So it is a lot of data...
Is there a way to reach a higher insert performance rate by asyncing the INSERT INTO
commands to one insert process per input file/date?
COPY
command is a more static approach. I am searching for a more general approach, which can be used also as endpoint of an automation chain. Like: Input one date of data --> Process/Modify/Enrich it --> Push it db. And than there will be one parallel process per day. And within this process I would like to put one timescale-db output at the end of each per-day-chain. Therefore, I am searching for the fastest and most performant way to split the data for the automation chains and keep timeorder in place.