Quantization saves RAM with an accuracy cost; on-disk saves RAM with a latency cost
Both options are ways to reduce the RAM footprint of a collection, but they trade against different things. Quantization with rescoring keeps a compressed representation of the vectors in RAM (or wherever you put it), so the traversal uses the small quantized vectors and only the final candidate set is rescored against the full-precision vectors. The trade is a small, measurable accuracy loss for a large reduction in memory, and the latency impact is usually modest because the rescoring step only touches a bounded number of candidates. Moving vectors on-disk without quantization keeps full accuracy but makes every vector access a potential disk read. The traversal itself then touches disk, which is much slower than touching RAM, and the latency becomes dominated by page-cache hit rate. The trade is latency and tail variance for exact accuracy and no quantization complexity.
The decision framework has three inputs. First, how sensitive is the application to accuracy? If a two-point recall drop would be invisible to users - most search and recommendation systems - quantization is the better choice. If the application is compliance search, exact-match retrieval, or anything where a missing result has a real cost, on-disk without quantization is safer. Second, how tight is the latency SLO? Quantization with rescoring tends to give a much better p99 because the traversal touches RAM; on-disk without quantization has a p99 that depends on disk latency and cache behavior, which is hard to bound. If the SLO is tight, quantization wins. Third, what is the query volume? Rescoring adds CPU work per query, so at very high QPS the rescoring cost may become the bottleneck, in which case on-disk without quantization or quantization without rescoring may be preferable. In practice the hybrid - quantized vectors in RAM for traversal and full-precision vectors on disk for rescoring - is often the best answer, because it combines the low latency of in-memory traversal with the low cost of on-disk storage, and it exposes the accuracy trade-off as a tunable knob (oversampling and rescoring).
Quantization with rescoring: RAM savings 4x-32x, small measurable accuracy loss, low latency impact, rescoring CPU cost per query.
On-disk without quantization: full accuracy, larger RAM savings (raw vectors leave RAM entirely), but latency dominated by disk and page-cache behavior.
Accuracy sensitivity: quantization is safer when small recall drops are acceptable; on-disk is safer for exactness-critical workloads.
Latency SLO: quantization usually gives a better, more bounded p99; on-disk is more variable.
Query volume: rescoring adds CPU per query, which matters at very high QPS.
Hybrid: quantized vectors in RAM + raw vectors on disk is often the best combination.
The trade-off is that quantization moves the cost from latency to accuracy, while on-disk moves it from accuracy to latency. Which is preferable depends on which cost the application can absorb. The common mistake is assuming quantization is always the right answer because it is more modern. On a small collection that fits in RAM anyway, quantization adds complexity and accuracy loss for no benefit. The second mistake is assuming on-disk without quantization is safe for latency-sensitive workloads. It is not, unless the working set fits in the page cache, which brings you back to a RAM requirement. The third mistake is comparing the two by memory savings alone and ignoring that quantization's RAM savings come with a measurable recall change that must be benchmarked, while on-disk's savings come with a latency change that must be measured under load. Version note: the quantization schemes, the on_disk flags, and the inline storage feature have all changed across releases - the availability of inline storage in particular changes the comparison because it reduces the I/O cost of on-disk traversal. Verify what your version supports before choosing.
Version-dependent: the supported quantization schemes, the on_disk flags, and the inline storage feature differ across Qdrant releases, and the defaults for the optimizer thresholds that move segments to disk have changed. If you are making this decision on a specific version, benchmark both options on that version with your data and query distribution, and re-check after upgrading because the storage layout changes.
You have a small collection that fits in RAM. Explain whether quantization is worth enabling and why.
A teammate says on-disk without quantization is always safe because it does not lose accuracy. Explain the hidden cost.
You must cut RAM by 60 percent on a 40M-vector collection with a 25ms p99 SLO. Compare quantization with rescoring against on-disk without quantization, and recommend one with justification.
You enable quantization and recall drops by 1.5 points. Walk through how you would decide whether to accept it, recover it with oversampling, or revert to on-disk.
Design a collection configuration for a compliance search system that cannot lose more than 0.2 points of recall, with a 40ms p99 and a RAM budget that does not fit the full vectors. What do you choose and why?
Design an experiment that compares quantization with rescoring against on-disk without quantization on the same corpus and query set, controlling for memory and latency. What do you measure and how do you decide?
Derive the total cost per query of the two options as a function of query rate, memory cost, disk latency, and rescoring CPU. At what query rate does the ranking flip?
You are designing a storage strategy for a system that must serve both a latency-critical endpoint and a cost-critical bulk scoring job from the same collection. Describe the configuration and the trade-offs.