What actually separates one vector database from another once the marketing slides are gone? Most comparison pages answer that question with a feature grid. That grid is nearly useless, because almost every serious product now claims fast approximate search, metadata filtering, and horizontal scaling. The differences that decide whether a project succeeds live one layer down: how the index behaves when filters get selective, what durability guarantees exist, how recall changes as the dataset grows, and how much operational work someone has to do at 3 a.m. This guide walks through those layers in plain terms.
What a vector database actually does
A vector database stores high-dimensional numeric arrays (embeddings) and finds the ones closest to a query vector. That is the whole trick behind semantic search, recommendation, image similarity, and retrieval-augmented generation.
The hard part is scale. Comparing a query against a million vectors one by one is exact but slow. So production systems use approximate nearest neighbor (ANN) indexes that trade a little accuracy for a lot of speed. The accuracy they give up is measured as recall: the share of true nearest neighbors the index actually returns.
That trade-off is the first thing to pin down in any comparison. A system that returns 92 percent of true neighbors in 5 milliseconds and one that returns 99 percent in 40 milliseconds are not “better” and “worse.” They are different products.
The index algorithms behind the marketing claims

Nearly every vector database is a wrapper around a small family of algorithms. Knowing which one a product uses tells you more than any feature list.
| Algorithm | How it works | Strengths | Weak spots |
|---|---|---|---|
| HNSW (graph-based) | Builds a layered proximity graph and walks it greedily | Excellent recall and latency on in-memory data | Memory-hungry; deletes and updates are awkward |
| IVF (inverted file) | Clusters vectors, then searches only nearby clusters | Compact, cheap to build | Recall drops when clusters are uneven |
| Product quantization (PQ) | Compresses vectors into short codes | Massive memory savings | Lossy; needs reranking to recover accuracy |
| Disk-based / LSM variants | Keeps most data on disk, caches hot pages | Handles datasets larger than RAM | Higher tail latency under load |
Many systems combine these: IVF plus PQ for compression, HNSW for the coarse search, a reranking pass for precision. When a vendor says “proprietary index,” the honest follow-up question is which of these building blocks it resembles, and what happens to recall at your target latency.
Filtering is where comparisons quietly break
Here is the mistake that sinks more vector search projects than any other: teams benchmark pure vector search, then deploy with metadata filters attached.
Filtering changes everything. If 80 percent of your rows share the same tenant ID and a query filters on a rare value, a graph index can starve. It walks neighbors that all get discarded by the filter and returns almost nothing useful. There are three broad approaches:
- Pre-filtering. Find matching rows first, then search within them. Accurate, but slow when the filter matches millions of rows.
- Post-filtering. Search first, then drop non-matching results. Fast, but recall collapses when filters are selective.
- Filter-aware traversal. The index consults the filter while walking the graph. Best of both worlds, but genuinely hard to build, so quality varies widely between products.
Ask any vendor how their system handles a filter that matches 0.1 percent of the corpus. If the answer is vague, that is your answer. Teams building multi-tenant systems run into this constantly, and the same discipline used for separating tenant data in an enterprise assistant applies directly to vector search: isolation decisions belong in the schema and the query path, not in a post-hoc cleanup step.
Managed versus self-hosted: the real cost comparison
Feature parity between a managed service and an open-source engine is often close. Operational burden is not.
Self-hosting an open-source engine gives full control over index parameters, hardware, and data residency. It also means owning shard rebalancing, snapshot testing, version upgrades, and capacity planning. A useful exercise is to run a recovery drill for a managed database before committing to either path, because restore time is the number nobody benchmarks and everybody needs.
Managed services remove that work but introduce their own constraints: per-dimension or per-hour pricing, limits on index tuning, and migration friction if you leave. A fair comparison puts three numbers side by side over a two-year horizon:
- Infrastructure or subscription cost at realistic query volume
- Engineer hours spent on operations, priced at a real loaded rate
- Expected cost of one bad outage, weighted by how likely it is
That third row is where self-hosted setups often lose, and where the cheapest managed tier often loses too, because the low tier rarely includes the redundancy you assumed.
Benchmarking honestly: recall, latency, and the tail
Published benchmarks are useful for orientation and dangerous for decisions. Three reasons:
Hardware differs. A benchmark run on a 32-core machine with NVMe storage says little about your 8-core VM.
Datasets differ. Recall depends heavily on the intrinsic dimensionality and clustering of the data. Results on a clean image dataset may not transfer to messy text embeddings.
Averages hide the tail. A p50 latency of 8 milliseconds sounds great until p99 is 400 milliseconds because a background compaction job kicked in. Tail latency is what users actually feel.
The practical fix is a small, boring, repeatable test setup of your own:
- Export 100,000 to 1 million real embeddings from your own pipeline, not a public sample.
- Compute exact nearest neighbors by brute force for a few hundred queries, so you have ground truth.
- Measure recall@10 at your target latency, with and without your real filters.
- Run a sustained load test long enough to catch compactions, merges, and cache eviction.
- Repeat after a node restart to see how cold-start behavior affects the numbers.
That test setup takes a day or two to build and will outperform any vendor comparison chart you will ever read.
Consistency, durability, and the questions to ask
Vector databases are databases, and databases have promises. Ask specifically:
- Durability. Is a write acknowledged before it is on stable storage? What is the replication factor?
- Consistency. Are index updates visible immediately, or after a refresh interval? What do reads see during a merge?
- Backups. Are snapshots point-in-time consistent, and how long does a restore actually take?
- Deletes. Does deleting a vector reclaim memory, or does it leave a tombstone that degrades the graph over time?
That last one bites teams hardest. High-churn workloads, such as a feed that re-embeds documents daily, can slowly poison a graph index. Some engines handle this with background compaction; others require a full rebuild. Neither is wrong, but you need to know which you are buying.
Cost modeling that survives contact with finance
Vector search costs are dominated by memory, not compute. Embeddings are large: a million 1,536-dimension float32 vectors occupy roughly 6 GB before any index overhead, and HNSW graphs can add 50 percent or more on top. Compression via quantization cuts that dramatically at some recall cost.
The overlooked line item is data movement. Re-embedding a corpus, syncing replicas across regions, and pulling snapshots for analytics all generate egress charges that never appear in a per-vector pricing page. A clearer way to track cloud data transfer costs is worth setting up early, because vector workloads move far more bytes than teams expect, especially during backfills.
A simple rule: model cost per million vectors stored, per million queries served, and per full re-embedding cycle. If a vendor cannot help you estimate all three, the pricing page is incomplete.
Matching the database to the workload
Different jobs want different tools. A rough mapping:
| Workload | What matters most | Typical fit |
|---|---|---|
| RAG over a few million documents | Filtering quality, hybrid search with keywords | Engine with strong filter-aware search and sparse-vector support |
| Billion-scale image similarity | Memory efficiency, disk-based indexes | System built around quantization and tiered storage |
| Real-time recommendations | Low tail latency, frequent updates | In-memory graph index with fast upserts |
| Compliance-bound enterprise search | Data residency, auditability, isolation | Self-hosted or region-pinned managed deployment |
Hybrid search deserves a note. Pure vector search misses exact matches, product codes, and rare names. Most mature deployments combine dense vectors with keyword scoring and fuse the results. If a product treats hybrid search as an afterthought, expect to build the fusion layer yourself.
Common mistakes worth avoiding
Choosing on benchmark rankings alone. Your data is not their data.
Ignoring the filter path. The single most common cause of production disappointment.
Skipping the migration plan. Export formats, ID stability, and re-embedding logistics matter more than query speed if you ever need to leave.
Under-provisioning memory. Vector indexes are memory-hungry, and swap is not a strategy.
Treating recall as a fixed number. It changes with data distribution, filter selectivity, and index age. Monitor it in production with a sampled ground-truth check.
Conclusion
A vector database comparison is a comparison of trade-offs: recall against latency, memory against cost, operational control against operational burden. Products that look identical on a feature grid diverge sharply once you test with your own embeddings, your own filters, and your own failure modes. Build the small benchmark script, ask the durability and filtering questions directly, and model cost across storage, queries, and re-embedding. Do that, and the choice becomes far less about which vendor has the loudest claims and far more about which system you can actually operate on a quiet Tuesday.
FAQ
What is the difference between a vector database and a vector index library?
A library such as FAISS or hnswlib gives you an in-process index and leaves storage, replication, and access control to you. A vector database wraps an index with persistence, filtering, backups, and a query API. Small prototypes often work fine on a library; anything with multiple users or uptime requirements usually wants the database.
How much recall should I target?
Most production semantic search works well between 90 and 98 percent recall@10. Below 90 percent, users notice missing results. Above 98 percent, latency costs climb steeply for little visible gain. Measure with your own data and set the target based on what the application does with the results.
Do I need a dedicated vector database if I already use Postgres?
Not always. Extensions add vector search to relational databases and work well up to a few million vectors with moderate query volume. The case for a dedicated system grows with scale, filter complexity, and the need for specialized index tuning. Many teams start in Postgres and migrate later.
Why does my filtered search return so few results?
This is usually post-filtering against a selective filter. The index finds approximate neighbors, then the filter discards most of them, leaving a short list. Fixes include pre-filtering, a filter-aware index, or partitioning the collection by the filtered attribute so each partition stays dense.
How often should I rebuild an index?
Only when monitoring shows recall drifting. Set up a sampled ground-truth check that computes exact neighbors for a few hundred queries daily and compares them to production results. Rebuild or compact when recall falls below your target, not on a fixed calendar.
Is a managed vector database always more expensive?
No. At low volume, managed tiers are usually cheaper once you price engineer time. At high, steady volume with predictable load, self-hosting often wins on raw cost. The crossover point depends on your team’s operational skill and how much tuning your workload needs.







