MongoDB is betting that agentic applications want retrieval inside the operational database, not in a separate vector store. Atlas Infinite separates storage and compute to make that pitch. This guide explains the architecture, the preview limits, and when a dedicated vector database still wins.
A 20-person SaaS company runs its operational data in MongoDB. Its agent needs to remember customer preferences, search support tickets, and retrieve passages from uploaded documents. The team added a separate vector database, a synchronization job, and an embedding pipeline. Now it has three systems that can disagree about what is true.
MongoDB Atlas Infinite is aimed at that team. It separates storage from compute, then runs MongoDB Search and Vector Search on the same foundation as the operational data. The pitch is simple: one platform for the record, the keyword index, and the semantic index, with no sync job in the middle.
That is attractive for agentic workloads. It is also a preview feature on a new architecture, and it does not make every separate vector database obsolete. The useful question is where the integration pays for itself and where specialization still wins.
Why agent workloads stress the old database shape
Traditional databases tie storage to the machine that runs queries. Scaling up means moving data to a bigger machine. Adding a replica means copying data. Restoring a backup means copying it back. MongoDB calls this “storage gravity”: the bigger the data, the harder it is to move.
Agent workloads make that gravity worse. Retrieval data grows quickly, especially embeddings. Demand is spiky: an agent may run dozens of exploratory queries for one user, then sit idle. A separate vector store adds a second copy of the data and a pipeline to keep it current.
The failure mode is familiar. A document changes, the embedding does not, and the agent retrieves stale context. The answer sounds confident because the model is confident. The database was simply answering from an old copy.
Consider the same company with 5,000 tenants. Each tenant has a few thousand documents and its own access rules. A shared HNSW index has to filter by tenant before it searches; a flat index can scan the exact subset. The difference is not just speed. It is whether a noisy tenant can degrade search for everyone else.
What Atlas Infinite changes
Atlas Infinite separates storage and compute into independent layers. Storage is managed separately; compute nodes read from it. That lets MongoDB scale compute without copying the data, and scale storage without tying it to a query machine.
The architecture is aimed at unpredictable demand. A prototype can start small and grow into a petabyte-scale deployment without a re-architecture, according to MongoDB. The claim is vendor positioning, not an independent benchmark. The useful part for a team is the separation itself: it changes the scaling unit from “bigger machine” to “more compute against shared storage.”
Search and Vector Search run on that foundation. MongoDB says the search index and the operational data live in one platform, so retrieval does not require a separate copy or sync job. For an agent that reads and writes the same records, that reduces a class of consistency bugs.
Search and vector search on the same foundation
MongoDB has been building toward integrated retrieval for a while. Search and Vector Search became generally available for self-managed Community and Enterprise editions on 30 June 2026. The search process, mongot, runs alongside mongod and keeps indexes synchronized with application data.
The Atlas features go further:
Automated Embedding generates and maintains embeddings for text fields, with field-level delta detection. When a document changes, only the changed field is re-embedded.
Flat indexes give multitenant applications a different index shape. Instead of an HNSW graph over a shared dataset, a flat index scans the exact filtered subset for a tenant. MongoDB recommends it when each tenant has a few thousand vectors; larger tenants may need dedicated HNSW indexes.
Hybrid search combines keyword and semantic matching in one query.
Native reranking reorders results with a reranking model.
Pre-filtering narrows vector candidates before the search runs.
The Mastra integration, released in v1.28 on 24 November 2026, packages hybrid search, automated embedding, bring-your-own-collection, pre-filtering, and native reranking into one query. The point is to search the existing collection and return full documents, rather than maintaining a separate retrieval copy.
When integrated retrieval wins
Integrated retrieval is strongest when the operational record and the retrieval index describe the same entity. A support ticket, a product, a customer profile, or a document has fields you filter on and text you search. Keeping both in one system avoids a synchronization boundary.
It also wins when the team is small. A separate vector database brings its own deployment, backup, access control, monitoring, and upgrade cycle. If the team already runs MongoDB, adding search to the same platform is less operational surface, not more.
The third case is consistency. If an agent writes a record and immediately searches for it, a separate pipeline creates a window where the write is visible but the embedding is not. Automated embedding narrows that window. It does not eliminate every delay, but it removes the manual backfill job.
Security is the other argument. With MongoDB Atlas Infinite, one system means one permission model for the record and the embedding. A separate vector store needs its own access control, encryption, and audit trail, and the sync job needs credentials to both. Fewer copies usually means fewer places to leak data.
When a separate vector database still makes sense
A dedicated vector database can still be the better choice.
You need a specialized index or quantization strategy that the operational database does not expose. Vector engines compete on recall, latency, and memory efficiency; the integrated option is usually the generalist.
Your retrieval corpus is much larger than your operational data. Keeping billions of embeddings in the same platform can be expensive or operationally awkward.
You already run a multi-store architecture with a search team, separate SLAs, and mature pipelines. Replacing it may cost more than the sync job it removes.
You need a feature the preview does not have. Atlas Infinite search is in public preview. Preview features can change, and production workloads should be evaluated against the current limits.
You want to avoid deeper vendor coupling. Integrated retrieval makes the database more valuable and the exit harder. That is a real trade-off, not a footnote.
The decision is not “one database good, many databases bad.” It is whether the consistency and operational savings outweigh the specialization and lock-in.
The preview limits and the questions to ask
Atlas Infinite with Search and Vector Search is in public preview. That means the architecture is available to evaluate, not a guarantee of final pricing, limits, or behaviour.
Ask these questions before moving a production retrieval workload:
What is the index build time for your corpus size, and how does it affect writes?
How fresh is the index after a write, and what is the measured lag under load?
What happens to search during a compute scaling event?
How are vector indexes billed on Atlas Infinite, and how does that compare with your current vector store?
Which index type fits each tenant? Flat for small tenants, HNSW for large ones, or a mix.
What is the backup and restore story for the search index, not just the documents?
What are the preview limits on dimensions, collections, and query throughput?
What is the exit path if the preview changes or pricing moves?
A preview is a good time to run a benchmark, not a good time to assume a roadmap.
A migration test plan
If you want to evaluate integrated retrieval, do it as a controlled experiment.
Step 1: Pick one retrieval use case. Choose a workload with a clear relevance metric, such as support-ticket search or product discovery. Do not start with the agent’s entire memory store.
Step 2: Measure the current system. Record recall, latency, cost per 1,000 queries, and index freshness. If the current pipeline has a sync lag, measure it.
Step 3: Build the same corpus in Atlas. Use the same documents, the same filters, and the same embedding model where possible. Automated embedding may change the model; keep that variable visible.
Step 4: Run side-by-side queries. Use a fixed query set, including hard cases: multi-filter searches, rare terms, and tenant-isolated queries. Compare relevance, not just speed.
Step 5: Test writes and freshness. Write a document, then query for it immediately. Repeat under load. Measure the lag and the failure mode.
Step 6: Test tenant isolation. If you are multitenant, confirm that a flat index or pre-filter cannot return another tenant’s data. This is a security test, not a performance test.
Step 7: Compare total cost. Include compute, storage, index build, egress, and engineering time. A lower query price can lose to a higher operational burden.
Step 8: Decide with a rollback plan. Keep the old pipeline until the new one has run production traffic for a full business cycle.
The cost question
MongoDB’s pitch is fewer systems, not necessarily a lower bill. Atlas Infinite separates storage and compute, which can make scaling more granular, but the pricing still depends on the compute you reserve and the storage you consume.
The comparison to make is total cost of ownership:
| Cost | Integrated Atlas | Separate vector store |
|---|---|---|
| Database | Atlas compute and storage | Existing database |
| Vector store | Included in Atlas tier | Separate compute and storage |
| Sync pipeline | Reduced | Required |
| Embedding | Automated option | Often custom |
| Operations | One platform | Two platforms |
| Specialization | General-purpose | Purpose-built |
The hidden cost of separate systems is duplication. The same document may exist in the operational database, the vector store, and a search index. Each copy needs storage, backup, access control, and a way to stay current. Integrated retrieval removes one copy and one pipeline, even if the per-gigabyte price is higher.
Plan for that. For a small team with a modest corpus, integrated retrieval often wins on operations alone. For a large retrieval workload with a dedicated search team, the specialized system may still earn its keep.
MongoDB Atlas Infinite is a credible answer to a real problem: agentic applications need retrieval close to the data they act on, and separate vector stores create a consistency gap. The separated storage and compute architecture is the more interesting part, because it changes how the database scales.
The integration is not free in production today. It is a preview, it deepens vendor coupling, and it may not match a specialized vector engine on every workload. Test it against your own queries, your own tenants, and your own cost model.
The useful question is not whether one database can do everything. It is whether your team can operate two systems well. If the answer is no, integrated retrieval is worth a serious look.
Put retrieval next to the data, not in another silo
SysopHost provides AI agent hosting and managed cloud infrastructure for teams building retrieval-heavy applications.
Review AI Agent HostingFrequently Asked Questions
Comments
No comments yet. Be the first to comment!
Priya Nair