timescaledb and disk space

Synergy Dave 2 months ago

Hello,
recently I switched to latest traccar server and timescaledb, configured retention policy and everything working as expected.
I've about 12k devices sending at 10s interval. I've noticed that disk space used is about 3GB every 1 hour.
is this normal or I'm missing something?
Should I activate compression for timescaledb? https://www.tigerdata.com/docs/use-timescale/latest/compression/about-compression
Regards,

Anton Tananaev 2 months ago

Based on the numbers you provided, you should have more than 4 million positions every hour. So it's about 700 bytes per position. It's on a higher side, but doesn't seem unreasonable, depending on the number of position attributes you have.

Synergy Dave 2 months ago

Thank you.
What about activating compression? is it something that could help optimizing storage, and won't affect traccar performance?

Anton Tananaev 2 months ago

It might help if you have a lot of repeated data, but I don't think it makes sense in a general case.

Yury GPS a month ago

What recommended compression policy for tc_positions table?

Anton Tananaev a month ago

Do not enable compression policy. It will result in issues.