triggerTSDBCompaction#
- swordfish.function.triggerTSDBCompaction()#
Use this command to manually trigger the compaction of TSDB level files at specific level for optimal reading performance.
Note
The compaction of level 3 files can only be performed when configuration parameter allowTSDBLevel3Compaction is set to true and for tables with keepDuplicates=FIRST/LAST specified.
- Parameters:
chunkId (Constant) – A STRING scalar indicating the chunk ID.
level (Constant, optional) –
Specify at which level the compaction is triggered, by default DFLT. It can be an integer in [-1,3].
If level is an integer in [0,3], compaction is triggered at the specified level.
When level = -1, all level files are compacted into a single level file.