home
Mohamed Arbi Nsibi
Qdrant 1.20.1 + 1.20.2: The Speed Patches

Qdrant 1.20.1 + 1.20.2: The Speed Patches

November 28, 2026 · 7 min
· 0 views
Two patch releases, zero new endpoints: a new way to build HNSW graphs that became opt-in three days later, batch searches that stop repeating the same filter, and fewer disk reads on cold storage. Here's what's actually new and when you should care.

Qdrant 1.20.2 just landed, and it came three days after 1.20.1. If 1.20.0 was the feature release (BM25 on full-text indexes, Turbo16, Turbo8), these two are the follow-up: same API, less waiting.

there is nothing new to learn here. no endpoint, no parameter. you upgrade and some things get faster. but one change flipped back between the two patches, and that one is worth understanding before you upgrade.

I’ll go through the 3 changes that matter in the simplest words possible. as always, I ran everything against the real Qdrant binaries, 1.20.1 and 1.20.2 side by side, and the code is in my qdrant-resources repo.

Cover: Qdrant 1.20.1 and 1.20.2 in three tiles: HNSW builds, batch search, cold disk

1. PiPNN: a faster HNSW build, and why ef_construct is back

quick recap first. HNSW is the graph Qdrant walks to find nearest neighbors. somebody has to build that graph, and on big segments that build is the slow part of indexing.

the classic build inserts points one by one. for every new point it SEARCHES the graph built so far, finds good neighbors, and links the point in. ef_construct is how wide that build-time search looks: higher means a better graph and a slower build.

PiPNN (Pick-in-Partitions Nearest Neighbors) skips the searching. it splits the points into overlapping groups, scores all pairs inside each group in one go, and keeps the best links. the graph file it writes has the same format, so search doesn’t know the difference.

Classic HNSW build vs PiPNN build, step by step

1.20.1 turned PiPNN on by default for large segments. the Qdrant source sets “large” at 30,000 points or more in one segment, built from scratch.

here’s the twist: PiPNN never runs a build-time search, so it ignores ef_construct. with PiPNN the only quality knob left is m. if you had raised ef_construct to get more recall, 1.20.1 silently stopped listening on your big segments.

1.20.2 fixes that by making classic the default again. PiPNN is still in the binary, as an opt-in feature flag:

# docker-compose.yml
environment:
  - QDRANT__FEATURE_FLAGS__PIPNN_GRAPH_BUILDING=true

and on 1.20.2 this does what it says again:

client.create_collection(
    "docs",
    vectors_config=models.VectorParams(size=1536, distance=models.Distance.COSINE),
    hnsw_config=models.HnswConfigDiff(m=16, ef_construct=400),  # <-- tunes large segments again
)

My measurements (ada-002 embeddings, 1536 dims, 40,000 vectors in ONE segment, m=16):

buildef_constructbuild timerecall@10 (hnsw_ef=64)
1.20.1 PiPNN10024 s0.972
1.20.1 PiPNN40020 s0.966
1.20.2 classic10036 s0.983
1.20.2 classic40053 s0.995

HNSW build time, PiPNN vs classic

Recall of the built graph vs exact search

the two PiPNN rows are the same graph within noise: raising ef_construct to 400 bought nothing (0.972 vs 0.966). classic is about 1.5x slower at 100 and 2.6x slower at 400, but 400 lifts recall@10 to 0.995, the best of the four. PiPNN is fast, classic is tunable.

when you should care: you bulk-load big collections and build time hurts. try the flag, measure recall on YOUR embeddings. when you shouldn’t: your segments stay under 30,000 points. PiPNN never applied to you.

2. Batch searches: one filter, resolved once

think of a batch where every search carries the same filter. a RAG app sending 6 query rewrites for one user, all with tenant = X. before, Qdrant worked that filter out again for every search in the batch. the PR behind the fix puts it plainly: 6 searches cost about 6 times one search.

the fix came in two steps:

  • 1.20.1: the same filter across several named vectors is shared.
  • 1.20.2: the same filter on the SAME vector is shared too, the common case.

A batch of three searches: the filter resolved three times before, once in 1.20.2

nothing changes in your code. this is the whole pattern:

flt = models.Filter(
    must=[models.FieldCondition(key="category", match=models.MatchValue(value="cat_1"))]
)
results = client.query_batch_points(
    "docs",
    requests=[models.QueryRequest(query=q, filter=flt, limit=10) for q in query_vectors],
)

Real output from my run, batch of 6: 42.2 ms vs 42.2 ms, no difference. batch of 32: 121.4 ms vs 114.9 ms, about 5% faster. the same batches without a filter: 47.7 ms vs 47.9 ms, same.

Batch search latency with one shared filter, 1.20.1 vs 1.20.2

honest caveat: the PR says this only changes filtered searches that go through the HNSW graph. exact searches and very selective filters already resolved the filter once. and the gain depends on how expensive your filter is, so a cheap filter gives a small win. that is what I saw: one keyword match on 20% of the points is cheap to resolve, so sharing it saved little.

3. Cold disk: fewer reads

“cold” means your data lives on disk and is not in RAM yet. right after a restart, or when the collection is bigger than memory. every read is then a real disk read, and that wait is most of your latency.

1.20.1 attacks that from two sides:

  • HNSW graph search on cold on-disk storage does half the number of reads.
  • filters with several conditions are much faster on cold on-disk payload indexes.

Disk reads per graph search on cold storage, 1.20.0 vs 1.20.1

this is the setup it applies to:

client.create_collection(
    "docs",
    vectors_config=models.VectorParams(size=1536, distance=models.Distance.COSINE, on_disk=True),
    hnsw_config=models.HnswConfigDiff(on_disk=True),
    on_disk_payload=True,
)
client.create_payload_index(
    "docs", "category", models.KeywordIndexParams(type="keyword", on_disk=True)
)

when you shouldn’t care: everything fits in RAM and stays warm. this one is for disk-first setups.

Also in this release

quick hits worth knowing:

  • 1.20.2 configs without ef_construct load fine, so downgrading from 1.21 works.
  • 1.20.2 fix: a new peer could fail to join right after a leader election.
  • 1.20.1 Turbo8 and Turbo16 quantize about 2x faster.
  • 1.20.1 fix: HNSW builds were up to 3x slower on many-core hosts in 1.20.0. if you benchmarked builds on 1.20.0, redo it.
  • 1.20.1 fix: the recommend best_score threshold with Euclid distance.

Try it yourself

everything above is in Qdrant-1.20.2-hands-on. two containers, 1.20.1 on port 6333 and 1.20.2 on port 7333, real OpenAI ada-002 embeddings from a cached dataset, no API keys.

docker compose up -d
pip install -r requirements.txt
python scripts/01_batch_shared_filter.py
python scripts/02_hnsw_build_pipnn_vs_classic.py

my hardware: Intel Core i5-11400H (6 cores, 12 threads), 16 GB RAM, Windows 11 with Docker Desktop. your numbers will differ. Always benchmark on YOUR embeddings.

Conclusion

1.20.1 and 1.20.2 are speed patches: faster batches with a shared filter, fewer disk reads when cold, and a new graph builder that was the default for exactly three days.

My advice: skip 1.20.1 and go straight to 1.20.2. keep the default classic build if you tune ef_construct. turn the PiPNN flag on only if build time is your bottleneck, and check recall before you trust it.

Faster is nice. Faster with your knobs still working is better.

References :

Share this article: LinkedIn

(END)

Join the discussion