Prompt
What database should I use for millions of vectors with low latency?
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
For millions of vectors with low latency, the usual choice is a vector database or a database with strong vector search support, depending on how much you value speed, filtering, and operational simplicity.
Best options by situation
1) Pinecone
- Great if you want managed, low-latency vector search
- Good for production systems with minimal ops
- Handles millions to billions of vectors well
- Strong choice when you want fast semantic search and don’t want to manage infrastructure
2) Milvus
- Strong open-source choice for large-scale vector search
- Good performance and flexible deployment
- Better if you want more control or self-hosting
- Common pick for millions+ vectors and low latency
3) Weaviate
- Good if you want vector search plus schema, filters, and hybrid search
- Easier app-level features than raw vector engines
- Can work well at millions of vectors, especially with good indexing/tuning
4) PostgreSQL + pgvector
- Best if you already use Postgres and your scale is moderate
- Simple architecture
- Works fine for millions of vectors in many cases, but latency and throughput may be worse than purpose-built vector DBs at higher load
5) Elasticsearch / OpenSearch
- Good if you need hybrid keyword + vector search
- Useful for search-heavy applications
- Not usually the top choice for pure vector similarity at low latency compared with dedicated vector DBs
Quick recommendation
- Managed, easiest production choice: Pinecone
- Open-source, scalable, fast: Milvus
- If you already have Postgres and want simplicity: pgvector
- If you need hybrid search: Weaviate or OpenSearch
What matters most for low latency
To get fast queries at millions of vectors, look for:
- Approximate nearest neighbor indexing like HNSW or IVF
- Good filtering support
- Enough RAM / SSD for the index
- Partitioning/sharding if the dataset grows
- Batch ingestion and periodic index tuning
Rule of thumb
- Up to a few million vectors: pgvector, Weaviate, Milvus, Pinecone can all work
- Low latency at scale: prefer Pinecone or Milvus
- If you need existing SQL workflows: pgvector
If you want, I can recommend a database based on:
- your cloud/on-prem preference,
- vector dimension,
- query QPS, and
- whether you need metadata filtering or hybrid search.