pgvector HNSW vs Qdrant Rust: 10M Vectors Benchmark (2026) — Deepak Bagada
Hire
Vector Databases · Updated 2026-11-30 · N = 10,000,000 vectors (768 dimensions) · Mumbai (ap-south-1)

pgvector HNSW vs Qdrant Rust: 10M Vectors Benchmark (2026)

Reproducible 10-million-vector (768d) benchmark comparing pgvector 0.8 HNSW and Qdrant Rust on filtered P95 latency, RAM usage, and monthly TCO.

Direct Summary

At 10 million 768-dimensional vectors, Qdrant with binary quantization delivers 11ms P95 latency on 1%-selectivity tenant-filtered queries using ~10GB RAM, whereas pgvector 0.8 HNSW averages 38ms P95 and ~36GB RAM but eliminates dual-write sync and extra cluster costs under 5M vectors.

Benchmark Results

Engine Unfiltered P95 Filtered (1%) P95 RAM Footprint ACID Joins Extra Cluster Cost
pgvector 0.8 (HNSW) 16 ms 38 ms ~36 GB Native PostgreSQL ₹0 (existing Postgres)
Qdrant (Rust + Quantization) 8 ms 11 ms ~9–12 GB Requires app sync ₹18,000+/mo standalone

Raw Dataset (CC-BY-4.0): https://deepakbagada.in/research/pgvector-vs-qdrant-10m-vectors-benchmark-2026.json

Methodology & Test Environment

Benchmarked 10M synthetic 768d float32 embeddings with multi-tenant metadata filters (`tenant_id` at 1% selectivity). `pgvector` 0.8 used `hnsw.ef_search = 100` and `hnsw.iterative_scan = strict_order`; Qdrant used HNSW with payload indexing and binary quantization rescoring.

Key Empirical Findings

  • Below 5M vectors, pgvector inside PostgreSQL provides lower total cost of ownership and zero eventual-consistency sync bugs.
  • Above 10M vectors with tight multi-tenant metadata filters, Qdrant prevents post-filter recall collapse while cutting RAM requirements by 3x–4x via quantization.
  • Combining pgvector HNSW with PostgreSQL GIN tsvector (BM25) via Reciprocal Rank Fusion lifts exact SKU/error-code recall from 59% to 97.4%.

Frequently Asked Questions

When should engineering teams choose pgvector over Qdrant?

Choose pgvector when your corpus is under 5 million vectors and you already run PostgreSQL, avoiding dual-write synchronization and saving ₹18,000+/month in separate cluster overhead.

How does Qdrant handle 10M vectors with low RAM?

Qdrant binary quantization compresses 768-dimensional float32 vectors in memory, reducing active RAM from ~36GB to ~9–12GB while preserving ~97% recall with rescoring.

Primary External Citations

⚡ ASSEMBLE MISSION