Skip to content

Commit

Permalink
removing memmap_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrinaaquino committed Feb 12, 2025
1 parent 67f2e96 commit ea4f475
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions qdrant-landing/content/articles/indexing-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,7 @@ PATCH /collections/your_collection
}
```

This approach immediately places all incoming vectors on disk. You can configure a threshold so that small segments are kept in RAM, but large segments automatically move to memmap storage once they exceed that threshold. This is controlled by the `memmap_threshold` in the collection’s `optimizers_config`.

```json
PATCH /collections/your_collection
{
"optimizers_config": {
"memmap_threshold": 20000
}
}
```

If you want both dense and sparse vectors to be stored on disk, you need to enable `on_disk` for each type separately.
This approach immediately places all incoming vectors on disk. If you want both dense and sparse vectors to be stored on disk, you need to enable `on_disk` for each type separately.

For dense vectors, set `on_disk: true` inside `hnsw_config`.

Expand Down

0 comments on commit ea4f475

Please sign in to comment.