How to Save Space With SQL Data Compression

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 5

  • @kde9910
    @kde9910 Рік тому

    Compression is pretty OP actually. I have a table with zabbix where each chunk is around 3.6GB before and 200MB after compression. I really wonder about the performance of accessing data in those chunks though.

    • @mathisve
      @mathisve Рік тому

      Hi! Compression is OP indeed! As for performance, this is an excerpt from the Timescale docs: "Because a single row takes up less disk space than many rows, it decreases the amount of disk space required, and can also speed up some queries." Pretty neat if you ask me!

  • @SergiSanchez-fb4et
    @SergiSanchez-fb4et Рік тому

    What happens if I need to modify a compressed value ?
    How can I do that ?

  • @deveshjoshi1156
    @deveshjoshi1156 2 роки тому

    Can we define retention policy on compressed data?

    • @TimescaleDB
      @TimescaleDB  2 роки тому +2

      Hey Devesh! Absolutely. A TimescaleDB compression policy applies to chunks, the partitions that make up a hypertable. When all of the data in a chunk is older than the set compression policy, it will be dropped, regardless of whether it's compressed or not. 🔥