19.14. Сжатие данных
cfs_gc(boolean)Включает/отключает процесс сборки мусора в сжимаемых страницах. По умолчанию:
on(вкл.)cfs_gc_workers(integer)Число фоновых сборщиков мусора CFS. Этот параметр можно задать только при запуске сервера. По умолчанию: 1
cfs_level(integer)Уровень сжатия CFS: 0 — сжатие отсутствует, 1 — сжатие с максимальной скоростью. Другие возможные значения определяются алгоритмом сжатия. Например, для
zlibмаксимум 9, а дляzstd— 19. По умолчанию: 1cfs_gc_threshold(integer)Минимальный процент «мусорных» блоков в файле, при котором начинается сборка мусора. Если вы хотите отдельно дефрагментировать отношение с меньшим процентом мусора, вы можете временно понизить значение этого параметра в рамках текущего сеанса. По умолчанию: 50
cfs_gc_period(integer)Интервал между итерациями процесса сборки мусора CFS (задаётся в миллисекундах). По умолчанию: 5 секунд
cfs_compress_temp_relations(bool)При значении
trueвключается сжатие временных таблиц. Для больших временных таблиц это может сэкономить место на диске и ускорить выполнение запросов вследствие уменьшения объёма чтения с диска. Этот параметр можно задать только при запуске сервера. Значение по умолчанию —false.cfs_gc_delay(integer)Интервал времени (в миллисекундах), на который сборка мусора приостанавливается после дефрагментации каждого файла. По умолчанию: 0
19.14. Data Compression
cfs_gc(boolean)Enables/disables background garbage collection of compressed pages. Default:
oncfs_gc_workers(integer)Number of CFS background garbage collection workers. This parameter can only be set at server start. Default: 1
cfs_level(integer)CFS compression level: 0 — no compression, 1 — maximal speed. Other possible values depend on the specific compression algorithm used. For example, 9 for
zlibor 19 forzstd. Default: 1cfs_gc_threshold(integer)Minimum percent of garbage blocks in the file required to start garbage collection. If you would like to manually defragment a relation with a smaller percent of garbage, you can temporarily set this parameter to a smaller value for your current session. Default: 50
cfs_gc_period(integer)Time interval between CFS garbage collection iterations, in milliseconds. Default: 5 seconds
cfs_compress_temp_relations(bool)When set to
true, compresses temporary tables. For large temporary tables, this setting can save disk space and speed up execution as less data needs to be read. This parameter can only be set at server start. Default:falsecfs_gc_delay(integer)Time interval for which garbage collection is paused after each file defragmentation, in milliseconds. Default: 0