pgvector vs Qdrant: Scale Limits, Filtering & Ops Overhead
Under 5 million vectors, running pgvector inside PostgreSQL avoids dual-write sync bugs and extra ops overhead; past 10 million embeddings or heavy filtered concurrency, Rust-native Qdrant pulls ahead with payload-aware HNSW, quantization, and RRF/DBSF hybrid search.

THE STORY IN THREE POINTS
- Short verdict: keep embeddings in PostgreSQL with pgvector (v0.8.7, 23.7K+ stars) below roughly 5 million vectors when relational ACID transactions, Row-Level Security, and zero extra infrastructure matter; adopt Qdrant (v1.20.2, Apache-2.0, 35.6K+ stars) once crossing ~10 million vectors or heavy filtered QPS.
- Memory math sets the scaling cliff: 5 million 1,536-dimensional float32 vectors occupy ~45–55 GB with HNSW index overhead, doubling to ~90–110 GB at 10 million—where pgvector p99 latency spikes sharply if the graph spills from RAM to block storage, though halfvec (FP16) halves footprint.
- Qdrant wins specialized retrieval through single-stage filterable HNSW traversal, Scalar/Binary/Product Quantization with optional rescoring, horizontal sharding, and server-side RRF and DBSF fusion for dense-plus-sparse hybrid search.
The 5-million-vector inflection point: when Postgres is enough
Backend engineers searching pgvector vs qdrant often encounter vendor posts claiming every RAG application needs a dedicated vector database on day one. In practice, Encore’s October engineering comparison and XERJ’s November benchmark review converge on a clear operational threshold: if your team already runs PostgreSQL and stores fewer than 5 million embeddings, pgvector (now at tag v0.8.7) is usually the pragmatic default.
At 1 million 1,536-dimensional float32 vectors (~6 KB per raw vector), well-provisioned PostgreSQL instances hold the working set comfortably in RAM and serve HNSW queries in 10–20 ms median latency. Scaling to 5 million float32 vectors pushes raw data (~30 GB) plus HNSW graph overhead to roughly 45–55 GB, and 10 million vectors to 90–110 GB. As soon as pgvector’s HNSW index spills out of shared buffers and OS page cache onto standard cloud block storage, random disk reads drive p99 tail latency into the 35–95 ms range or worse—the point where introducing a dedicated Rust service like Qdrant (v1.20.2, released November 16 under Apache 2.0) begins paying back its infrastructure complexity.
ACID consistency, SQL joins, and pgvector’s halfvec / iterative_scan upgrades
Running pgvector inside your primary database eliminates the hardest operational failure mode of split-database RAG: synchronization drift. Deleting a tenant document, updating document permissions, or rolling back an ingestion batch executes inside one ACID transaction alongside foreign keys, common table expressions, and Postgres Row-Level Security—whereas pairing Postgres with Qdrant forces dual-writes or CDC pipelines (such as Debezium or Kafka) to keep metadata consistent.
Recent pgvector releases also close two classic weaknesses. Storing embeddings as halfvec (16-bit FP16) halves RAM and disk consumption while raising the HNSW/IVFFlat dimension limit from 2,000 to 4,000, keeping 5M–10M collections resident in memory longer. Meanwhile, pgvector’s hnsw.iterative_scan setting (such as relaxed_order) continues walking the HNSW graph when selective SQL WHERE clauses discard early candidates, preventing under-filled LIMIT results without disabling vector indexes.
Filtered HNSW latency, quantization, and RRF/DBSF hybrid search in Qdrant
Even with iterative_scan, PostgreSQL separates relational B-tree or GIN indexes from HNSW graph links, forcing planner trade-offs when selective multi-tenant filters shrink candidate pools under high concurrency. As documented in Qdrant’s retrieval architecture and Jahanzaib.ai’s agent-storage survey, Qdrant embeds payload indexes directly inside each segment so filter predicates are evaluated during HNSW traversal itself—sustaining steady p99 latencies around 15–35 ms across 10M+ filtered vectors.
At tens of millions of embeddings, Qdrant’s built-in Scalar (int8), Product, and Binary Quantization cut memory footprints dramatically while preserving recall through optional full-precision rescore=True and oversampling passes. Qdrant’s Universal Query API also fuses dense semantic embeddings with sparse lexical/BM25 vectors server-side via Reciprocal Rank Fusion (RRF) or Distribution-Based Score Fusion (DBSF) alongside native horizontal sharding—features RAG pipelines increasingly pair with high-throughput serving stacks covered in our SGLang vs vLLM and Ollama vs vLLM throughput audits.
Operational overhead and when to split into two datastores
Choosing Qdrant early without clear scale pressure adds a second stateful cluster to back up, upgrade, secure, and keep synchronized with relational user permissions. Moreover, pgvector index builds—though CPU- and maintenance_work_mem-intensive—leverage existing Postgres observability, point-in-time recovery, and managed RDS/Cloud SQL/Neon tooling.
The cleanest production roadmap starts in PostgreSQL with pgvector using halfvec and tuned HNSW parameters, monitors buffer-cache hit ratios and filtered p99 latency as embeddings pass 5 million rows, and splits retrieval out to Qdrant only when multi-tenancy filter selectivity, 10M+ vector growth, or cross-node sharding requires dedicated Rust vector segments.
Sources: pgvector/pgvector Repository (v0.8.7, halfvec & iterative_scan)|GitHub ↗ qdrant/qdrant Repository (v1.20.2, Apache 2.0)|GitHub ↗ Qdrant Documentation: Quantization, Filtering & Hybrid Queries|Qdrant ↗ pgvector vs Qdrant: Engineering Trade-offs|Encore ↗ Qdrant vs pgvector vs ChromaDB Comparison|XERJ ↗ Vector Databases for AI Agents Survey|Jahanzaib.ai ↗
THE BROADER CONTEXT · FRONTIER LABS DOSSIER
Explore full product specifications, pricing analysis, and continuous coverage in the Frontier Labs Desk Hub and Others Dossier. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.


