OptimizersConfig

@Serializable
data class OptimizersConfig(val defaultSegmentNumber: Int? = null, val indexingThreshold: Int? = null, val memmapThreshold: Int? = null, val flushIntervalSec: Int? = null, val maxOptimizationThreads: Int? = null, val deletedThreshold: Double? = null, val vacuumMinVectorNumber: Int? = null, val maxSegmentSize: Int? = null)

Optimizer tuning for a collection. All fields are optional; on create, omitted ones use Qdrant's defaults; on update, omitted ones keep the current value.

Constructors

Link copied to clipboard
constructor(defaultSegmentNumber: Int? = null, indexingThreshold: Int? = null, memmapThreshold: Int? = null, flushIntervalSec: Int? = null, maxOptimizationThreads: Int? = null, deletedThreshold: Double? = null, vacuumMinVectorNumber: Int? = null, maxSegmentSize: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "default_segment_number")
val defaultSegmentNumber: Int?

Target number of segments the optimizer keeps.

Link copied to clipboard
@SerialName(value = "deleted_threshold")
val deletedThreshold: Double?
Link copied to clipboard
@SerialName(value = "flush_interval_sec")
val flushIntervalSec: Int?
Link copied to clipboard
@SerialName(value = "indexing_threshold")
val indexingThreshold: Int?

Number of vectors in a segment before a vector index is built (0 disables ANN).

Link copied to clipboard
@SerialName(value = "max_optimization_threads")
val maxOptimizationThreads: Int?
Link copied to clipboard
@SerialName(value = "max_segment_size")
val maxSegmentSize: Int?
Link copied to clipboard
@SerialName(value = "memmap_threshold")
val memmapThreshold: Int?

Number of vectors in a segment before it is memory-mapped to disk.

Link copied to clipboard
@SerialName(value = "vacuum_min_vector_number")
val vacuumMinVectorNumber: Int?