Skip to content

Commit

Permalink
chore: improved performance on deletes. (#3539)
Browse files Browse the repository at this point in the history
* chore: improved performance on deletes.

Signed-off-by: Iain Cox <[email protected]>
Co-authored-by: Yannis Roussos <[email protected]>
  • Loading branch information
billy-the-fish and iroussos authored Oct 31, 2024
1 parent 2f4f27b commit b0fc7c6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion use-timescale/compression/modify-compressed-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ This feature requires PostgreSQL 14 or later

<Tab title="TimescaleDB&nbsp;2.11 and later">

In TimescaleDB&nbsp;2.11 and later, you can insert data into compressed chunks.
In TimescaleDB v2.11 and later, you can insert data into compressed chunks.
This works even if the data you are inserting has unique constraints, and those
constraints are preserved during the insert operation. This is done by using a
PostgreSQL function that decompresses relevant data during the insert to check
if the new data breaks unique checks. This means that any time you insert data
into a compressed chunk, a small amount of data is decompressed to allow a
speculative insertion, and block any inserts which could violate constraints.

For TimescaleDB v2.17.0 and later there is improved delete performance on compressed
hypertables when a large amount of data is affected. When you delete whole segments of
data, filter your deletes by `segment_by` column(s) instead of separate deletes.
This considerably increase performance by skipping the decompression step.




</Tab>

<Tab title="TimescaleDB&nbsp;2.3-2.10">
Expand Down

0 comments on commit b0fc7c6

Please sign in to comment.