vectordb / Exports / CompactionOptions
Interface: CompactionOptions
Table of contents
Properties
Properties
materializeDeletions
β’ Optional
materializeDeletions: boolean
If true, fragments that have rows that are deleted may be compacted to remove the deleted rows. This can improve the performance of queries. Default is true.
Defined in
materializeDeletionsThreshold
β’ Optional
materializeDeletionsThreshold: number
A number between 0 and 1, representing the proportion of rows that must be marked deleted before a fragment is a candidate for compaction to remove the deleted rows. Default is 10%.
Defined in
maxRowsPerGroup
β’ Optional
maxRowsPerGroup: number
The maximum number of T per group. Defaults to 1024.
Defined in
numThreads
β’ Optional
numThreads: number
The number of threads to use for compaction. If not provided, defaults to the number of cores on the machine.
Defined in
targetRowsPerFragment
β’ Optional
targetRowsPerFragment: number
The number of rows per fragment to target. Fragments that have fewer rows will be compacted into adjacent fragments to produce larger fragments. Defaults to 1024 * 1024.