| name | qdrant-search-speed-optimization |
| description | Diagnoses and fixes slow Qdrant search. Use when someone reports 'search is slow', 'high latency', 'queries take too long', 'low QPS', 'throughput too low', 'filtered search is slow', or 'search was fast but now it's slow'. Also use when search performance degrades after config changes or data growth. |
What to Do When Qdrant Search Is Too Slow
First determine whether the problem is latency (single query speed) or throughput (queries per second). These pull in opposite directions. Getting this wrong means tuning the wrong knob.
Single Query Too Slow (Latency)
Use when: individual queries take too long regardless of load.
Can't Handle Enough QPS (Throughput)
Use when: system can't serve enough queries per second under load.
Filtered Search Is Slow
Use when: filtered search is significantly slower than unfiltered. Most common SA complaint after memory.
- Create payload index on the filtered field Payload index
- Use
is_tenant=true for high-cardinality tenant fields Tenant index
- Try ACORN algorithm for very restrictive filters (v1.13+) Filterable HNSW
- If payload index was added after HNSW build, trigger re-index to create filterable subgraph links
Search Was Fast, Now It's Slow
Use when: search performance degraded without obvious config changes. Classic pattern after bulk uploads.
- Check optimizer status (most likely still running after upload) Optimizer monitoring
- Check segment count (unmerged segments from bulk upload) Merge optimizer
- Check for cache eviction from competing processes
- Do NOT make config changes while the optimizer is running
What NOT to Do
- Set
always_ram=false on quantization (disk thrashing on every search)
- Put HNSW on disk for latency-sensitive production (only for cold storage)
- Increase segment count for throughput (opposite: fewer = better)
- Create payload indexes on every field (wastes memory)
- Blame Qdrant before checking optimizer status