A JOURNAL OF ARTIFICIAL INTELLIGENCE
my ai daily

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.

AI-generated editorial illustration contrasting a compact unified chassis holding a deep-indigo carved stone block embedded with brass vector pins on the left against a burnt-copper lattice chamber with multi-stage glowing cyan optical filter plates sorting swirling crystalline particles into parallel lanes on the right.
AI-generated illustration / my ai dailyIllustrative image.

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.

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.

02The next story

News

What Is Speculative Decoding? How Draft-Verify Cuts Latency

Speculative decoding accelerates LLM generation without changing output quality by letting a fast drafter guess K tokens and having the target model verify them in parallel—now mature in llama.cpp 1.0’s NextN llama.h API and vLLM’s DFlash2.

Best GPU for Local LLM: VRAM, Bandwidth & Consumer Picks

For single-user local LLM inference, memory bandwidth—not raw compute FLOPS—dictates token generation speed once weights fit in VRAM. Here is how NVIDIA RTX 5070 Ti (896 GB/s), RTX 4090 (24 GB), RTX 5090 (1,792 GB/s), and 128 GB+ unified systems rank.

Best Open-Source Embedding Models: MTEB, Context & RAG Picks

Stop defaulting RAG pipelines to 512-token legacy embedders like bge-large or mxbai-embed-large. Here are the top November 2026 open-weight embedding models—Qwen3-Embedding (32K, 70.58 MTEB), Microsoft’s MIT harrier-oss-v1 (up to 0.7427), BGE-M3 hybrid, and edge EmbeddingGemma-300M.

Follow your curiosity.

EXPLORE THE ARCHIVESOURCES & CONTEXT INCLUDED