Skip to content

Chunk performance degrades until decompression/recompression in TimescaleDB #8715

@arsalaniut

Description

@arsalaniut

Hello TimescaleDB team,

I am using TimescaleDB on PostgreSQL with hypertables. Normally, my queries across chunks work very well. However, I noticed that sometimes a specific chunk suddenly becomes very slow to query (taking much longer than other chunks, sometimes even locking).

If I manually decompress the chunk and then compress it again, the performance goes back to normal, and queries run as fast as on other chunks.

This behavior does not depend on the chunk age (it can happen to recent or older chunks). I usually have multiple chunks per day, and only one or two may suddenly start showing this problem.

My questions are:

Why would a chunk suddenly degrade in performance compared to others?
What is the recommended permanent solution so I don’t have to manually decompress/recompress chunks?
my postgres version --> 17.6
and timescaledb --> 2.20.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions