ld.← ALL FIELD NOTESTHE RELATED CASE STUDY ↗
FIELD NOTES / 11MEMORY   ·   THE QDRANT SERIES

Where do vectors live at runtime?

Storage settings change more than where a file lives: they shape what happens when a query needs data that is not in memory.

A working set, not three isolated boxes

Memory-mapped storage keeps vectors in files on disk and lets the operating system cache accessed pages in RAM. A cache hit can be fast; a miss requires disk I/O. On-disk does not mean “never cached.”

For our large paper collection, we used memory-mapped vector storage while keeping the index available in memory. It let us work with a collection larger than available RAM, with latency depending on the working set and disk performance.

Tune by component

Vectors, the HNSW graph, payloads, and quantized vectors have different access patterns and can have separate placement settings. Newer Qdrant releases express placement through memory tiers; older versions use settings such as on_disk.

Benchmark with representative queries and warm and cold caches. Moving more data to disk can reduce RAM requirements, but may increase I/O and tail latency.

A STORAGE TRADE-OFF
RAMFast access, limited capacity
PAGE CACHEFrequently accessed data
DISKMore capacity, I/O on misses

Continue the conversation

Further reading

KEEP READING / 10What happens inside a segment?

Another note from the notebook.