Update default value of indexing_threshold (#2236)

This commit is contained in:
Abdon Pijpelink
2026-03-27 13:17:50 +01:00
committed by GitHub
parent b0aeda5233
commit 063b0c7111
3 changed files with 17 additions and 17 deletions
@@ -30,7 +30,7 @@ To control this behavior and optimize for your system’s limits, adjust the fol
|-------------------------------------------|-------------------------------------------------|----------------------------------------------------|
| Fastest upload, tolerate high RAM usage | Disable indexing completely | `indexing_threshold: 0` |
| Low memory usage during upload | Defer HNSW graph construction (recommended) | `m: 0` |
| Faster index availability after upload | Keep indexing enabled (default behavior) | `m: 16`, `indexing_threshold: 20000` *(default)* |
| Faster index availability after upload | Keep indexing enabled (default behavior) | `m: 16`, `indexing_threshold: 10000` *(default)* |
Indexing must be re-enabled after upload to activate fast HNSW search if it was disabled during ingestion.
@@ -408,13 +408,13 @@ client.CreateCollection(context.Background(), &qdrant.CreateCollection{
With indexing_threshold set to 0, storage won't be optimized properly, which can lead to high RAM usage as segments accumulate in memory.
</aside>
After upload is done, you can enable indexing by setting `indexing_threshold` to a desired value (default is 20000):
After upload is done, you can enable indexing by setting `indexing_threshold` to a desired value (default is 10000):
```http
PATCH /collections/{collection_name}
{
"optimizers_config": {
"indexing_threshold": 20000
"indexing_threshold": 10000
}
}
```
@@ -437,7 +437,7 @@ const client = new QdrantClient({ host: "localhost", port: 6333 });
client.updateCollection("{collection_name}", {
optimizers_config: {
indexing_threshold: 20000,
indexing_threshold: 10000,
},
});
```
@@ -453,7 +453,7 @@ let client = Qdrant::from_url("http://localhost:6334").build()?;
client
.update_collection(
UpdateCollectionBuilder::new("{collection_name}")
.optimizers_config(OptimizersConfigDiffBuilder::default().indexing_threshold(20000)),
.optimizers_config(OptimizersConfigDiffBuilder::default().indexing_threshold(10000)),
)
.await?;
```