Vector Database Storage: Choosing Infrastructure for Embeddings at Scale

Picture of DataStorage Editorial Team

DataStorage Editorial Team

AI INFRASTRUCTURE & WORKFLOWS 10 min read  ·  July 2026
One million documents embedded at 3,072 dimensions produce roughly 12 gigabytes of raw vector data before indexing overhead. Add the standard HNSW index and that number grows by another 50 percent. Most teams estimate their vector database storage once, at the start, and never revisit the math again.

One million documents embedded at 3,072 dimensions, the size OpenAI's text-embedding-3-large model produces, generate roughly 12 gigabytes of raw vector data before any indexing overhead is added. Apply a standard HNSW index, the most common vector search structure, and storage grows by another 50 percent on top of that. Production RAG and agent memory systems routinely end up storing 10 to 50 times more vector data than teams initially estimated, once metadata, multiple embedding models, and versioning are accounted for.

Vector databases have quietly become one of the largest line items in AI infrastructure budgets, and the gap between what a pricing page implies and what a production bill actually looks like averages 2.5 to 4 times higher, according to infrastructure cost analysis published this year. This guide covers the real storage math, what the major options actually cost at scale, and how to architect around the surprises.

12GB
raw vector data per 1M documents at 3,072 dimensions
2026
1.5x
storage overhead added by standard HNSW indexing
2026
2.5-4x
how much higher real bills run versus pricing-page estimates
Cost analysis, 2026
10-50x
gap between initial storage estimate and actual production volume
2026

The Storage Math Nobody Runs First

Vector storage cost is driven by three multiplying factors, and most initial estimates only account for the first one.

Dimension count

Higher-dimension embeddings cost proportionally more to store and query. A 1,536-dimension embedding, OpenAI's text-embedding-3-small, costs roughly half of what a 3,072-dimension embedding from the larger model costs at the same volume. Dimension count is usually the first lever worth checking before scaling storage: many production RAG workloads get equivalent retrieval quality from the smaller, cheaper embedding size.

Index overhead

HNSW, the graph-based index most vector databases use by default, adds roughly 1.5x storage overhead on top of the raw vector data to build the navigable graph structure that makes fast approximate search possible. This overhead is not optional if you want fast search, but it needs to be budgeted for from the start rather than discovered later.

Volume growth nobody plans for

Metadata fields, multiple embedding model versions kept in parallel during a migration, and re-indexing after a model upgrade all compound on top of the base storage estimate. The 10x to 50x gap between initial estimate and actual production storage cited in current cost analyses comes almost entirely from this category, not from underestimating the base embedding size.

$
⚡ Free Tool
See What You're Actually Paying Across Providers
Use our Cloud Cost Calculator to compare real storage pricing across AWS, Azure, GCP, Backblaze, Wasabi and more, side by side, in seconds.
Try the Free Calculator

Managed vs. Self-Hosted: The Real Cost Curve

The cost curve between managed and self-hosted vector databases is not linear, it bends sharply at scale. At modest volume the difference is minor. Past roughly 50 to 100 million vectors, the gap becomes the entire decision.

Database At 10M Vectors At 100M Vectors
Pinecone (Serverless)~$70/month$700+/month
Weaviate Cloud~$135/monthNeeds careful capacity planning
Qdrant Cloud~$65/monthStays under $100/month self-hosted
pgvector (on RDS)~$45/monthStays under $100/month self-hosted

At 10 million vectors, the spread across major providers is modest, roughly $45 to $135 a month. At 100 million vectors, that spread explodes: Pinecone's serverless pricing can reach $700 or more a month, while self-hosted Milvus or pgvector deployments commonly stay under $100 a month at the same volume, provided the operational capacity exists to run them. The trade-off is explicit: managed services convert an operations problem into a bigger bill; self-hosting converts a bigger bill into an operations problem. Neither is free, and the right answer depends entirely on whether your team has infrastructure capacity to spend instead of budget.


The Hidden Costs That Blow Up the Budget

Three specific line items account for most of the gap between a pricing page estimate and the actual monthly bill.

Egress fees on data movement

Moving vector data between providers, from a hyperscaler-hosted database to a different vendor, for example, triggers standard cloud egress charges, typically $0.08 to $0.09 per gigabyte on AWS. Moving 100 million vectors between providers can generate a genuinely large one-time egress bill that rarely appears in anyone's initial cost model.

Index rebuild compute

Rebuilding an HNSW index after a bulk update or a model migration costs roughly $12 to $40 in compute per 10 million vectors, a cost that recurs every time the underlying embedding model changes or a large batch of new data is ingested.

Delete and replace churn

Systems with high-frequency delete-and-replace patterns, common in real-time agent memory, generate ongoing write-unit costs on usage-based pricing models that are easy to underestimate if the initial cost model only accounts for steady-state storage and query volume, not the churn rate.


Choosing the Right Architecture by Scale

Scale should drive the default choice more than brand familiarity or marketing. Here's how the decision typically breaks down:

Scale Recommended Default Why
Under 1M vectorspgvector in existing PostgresNo new system, SQL joins with source data, lowest operational cost
1M to 50M vectorsQdrant, managed or self-hostedBest cost-to-performance ratio, strong filtering, no per-query fee
50M to 100M vectorsWeaviate (with capacity planning) or QdrantStill viable, but memory and compute use need active monitoring
100M+ vectorsMilvus or Zilliz CloudDisk-based indexing built for this scale, avoids all-RAM cost blowup

For most RAG workloads under a few million vectors, pgvector inside an existing PostgreSQL database is the strongest starting point, since it avoids standing up a new system entirely and keeps embeddings queryable alongside the source documents and metadata with ordinary SQL joins. Benchmark data shows pgvectorscale reaching 471 queries per second at 99 percent recall on 50 million vectors, which is fast enough for the large majority of production RAG and agent applications well before a dedicated vector database becomes necessary. This ties directly into why storage functions as the anchor of the AI infrastructure stack rather than an afterthought.


The Zero-Egress Escape Hatch

The single most effective architectural decision for avoiding the worst vector database cost surprises has nothing to do with which vector database you pick: store your source-of-truth embeddings in object storage first, then index them into whichever vector database you're using at the time.

Keeping the canonical copy of your embeddings in S3-compatible object storage, ideally a zero-egress provider like Backblaze B2 or Wasabi, means switching vector database vendors later, or re-indexing after a model upgrade, never requires paying an egress fee to extract your own data from a vendor that no longer fits. You re-hydrate a new vector index directly from your own object storage instead. This is the same architectural principle behind building against a portable API standard rather than a single vendor: the vendor underneath becomes replaceable rather than load-bearing.

$0
🤝 Partner Offer
Get Started with Backblaze B2, Zero Egress Fees
Backblaze B2 offers S3-compatible object storage at a fraction of AWS costs, with no egress fees when paired with Cloudflare. Trusted by 500,000+ businesses.
Visit Backblaze B2
Before You Commit to a Vector Database
  • Calculate real storage using dimension count, plus roughly 1.5x for HNSW index overhead, not just the raw embedding size.
  • Check whether a smaller embedding dimension, such as 1,536 instead of 3,072, delivers equivalent retrieval quality at half the storage cost.
  • Model index rebuild costs into any plan involving a future embedding model migration.
  • Store source-of-truth embeddings in zero-egress object storage so switching vector databases later never triggers an egress bill.

Key Takeaways

Key Takeaways
  • A million documents at 3,072 dimensions produce roughly 12 GB of raw vector data, growing by another 50 percent once a standard HNSW index is applied, before metadata and versioning are even counted.
  • Production vector database bills run 2.5 to 4 times higher than pricing-page estimates on average, driven by egress fees, index rebuild compute, and delete-and-replace churn that initial cost models routinely miss.
  • The managed-versus-self-hosted cost gap is modest at 10 million vectors but explodes at 100 million, where Pinecone can exceed $700 a month while self-hosted pgvector or Milvus can stay under $100.
  • pgvector inside an existing PostgreSQL database is the strongest default for most RAG workloads under a few million vectors, avoiding a new system entirely while still delivering production-grade query performance.
  • Storing source-of-truth embeddings in zero-egress object storage, separate from whichever vector database indexes them, is the single most effective way to avoid egress costs when switching vendors or re-indexing after a model upgrade.

FAQ

How much storage does a typical RAG application actually need?
It depends heavily on embedding dimension and document count, but as a rule of thumb, budget for roughly 12 GB of raw vector storage per million documents at 3,072 dimensions, then add 50 percent for HNSW index overhead, then multiply by a safety factor of at least 2 to 3x to account for metadata, versioning, and growth that initial estimates routinely miss.
Is a managed vector database always more expensive than self-hosting?
Not at smaller scale. Below roughly 10 to 50 million vectors, the cost difference between managed and self-hosted options is often modest enough that operational simplicity is worth the premium. The gap widens sharply past 100 million vectors, where self-hosting can cost a fraction of managed pricing, provided the team has the operational capacity to run it.
Can I avoid egress fees when switching vector database providers?
Yes, if you architect for it in advance. Keeping your source-of-truth embeddings in your own zero-egress object storage, rather than treating the vector database as the only copy of your data, means you can re-index into a new provider directly from storage you already control, without paying to extract your own data from the old vendor.
Do I need a dedicated vector database, or is pgvector enough?
For most RAG workloads under a few million vectors, pgvector inside an existing PostgreSQL instance is genuinely sufficient and often the better choice, since it keeps embeddings queryable alongside source data with standard SQL. Dedicated vector databases earn their complexity at higher scale or when specialized features like advanced hybrid search or billion-scale disk-based indexing are actually required.
What's the single biggest hidden cost in vector database budgets?
The volume gap between initial estimates and actual production storage, commonly 10 to 50 times higher once metadata, multiple embedding model versions, and re-indexing after model upgrades are accounted for. Egress fees and index rebuild compute matter too, but the underlying volume underestimate is usually the largest single factor.
The vector database is not where your embeddings should live permanently, it's where they get searched. Keep the source of truth somewhere you control, and the database underneath becomes a choice instead of a trap.
Weekly Newsletter
Stay Ahead in Cloud Infrastructure
Join 1,200+ CTOs, architects, and cloud professionals who get our weekly briefing on storage strategy, GPU compute, and cloud cost intelligence.
Subscribe Free

References

  • Vector database pricing and architecture analysis compiled from provider pricing pages and cost benchmarks (2026)
  • Independent benchmarking of pgvectorscale, Pinecone, Weaviate, and Qdrant at scale (2026)
  • Infrastructure cost analysis on the gap between vector database pricing estimates and production bills (2026)

Share this article

🔍 Browse by categories

Free Cloud Cost Calculator

Compare AWS, Google Cloud, Azure, and alternatives like Backblaze B2 Discover how much you could save in seconds

🔥 Trending Articles

Newsletter

Stay Ahead in Cloud
& Data Infrastructure

Get early access to new tools, insights, and research shaping the next wave of cloud and storage innovation.