What a MongoDB to Qdrant migration involves and how much effort it takes
Your embeddings sit in MongoDB or MongoDB Atlas Vector Search, and search has either outgrown that setup or your team wants the vectors running in infrastructure you control. The move is a bounded data copy plus application and operations work. The copy itself is the smallest part: the Qdrant Migration Tool reads documents and writes points in batches, but the collection design, the query changes in your application, and the operational runbook around a self-hosted Qdrant node or cluster take most of the effort.
MongoDB stays the system of record. Qdrant becomes a derived search index that you can rebuild from MongoDB at any time, so the migration does not require retiring MongoDB data or changing how documents are written. Effort depends on three things you can count before you start: the number of collections and vector fields to move, the shape of each document (how many fields become payload, how nested they are, and how large they are), and the query patterns your application uses today, especially which fields it filters on and how often. Each filtered field is a candidate payload index, and each combination of vector field and filter needs a test case.
Ask your team to inventory these items and to confirm with them which MongoDB deployment type (self-managed or Atlas) and which vector search index definitions are in use, since those details shape the source connection and field mapping. Check the Qdrant Migration Tool documentation for the MongoDB source settings supported by the version you plan to run, and confirm the current Qdrant release notes before you pin a version. Any quote you request should be tied to this inventory, the number of collections in scope, and the search quality checks you expect before cutover.
Which MongoDB vector and document features map to Qdrant
This table compares how MongoDB and MongoDB Atlas Vector Search concepts line up with a self-hosted Qdrant collection, row by row. Read each row against your current MongoDB setup to decide what the target collection must declare up front and what has to be rebuilt in application code. The main takeaway is that the vector settings and the filter fields must be planned before the migration runs, because Qdrant needs the collection to exist first.
| Feature | Qdrant equivalent | Migration note |
|---|---|---|
| Vector field and size | Named or unnamed vector in the collection's vectors configuration | Confirm the vector size against your embedding model's output dimension. Create the collection with that exact size before the migration runs. |
| Similarity metric | Distance setting on the collection, such as cosine, dot or Euclidean | Confirm the metric your Atlas index or application used, since a mismatch changes ranking. Set the same distance on the Qdrant collection. |
| Document fields kept as metadata | Payload: JSON key-value data stored alongside each point | Map each MongoDB field you filter or return to a payload key. Keep large documents in MongoDB and store only the reference ID and filter fields. |
| Filter operators | Payload filters with must, should and must_not conditions, plus range and match | Rewrite $eq, $in, $gt and similar Atlas filter clauses as Qdrant conditions. Test each filter on sample data, since operator coverage differs. |
| Document identifier | Point ID (unsigned integer or UUID) | Qdrant does not accept arbitrary strings as IDs. Store the MongoDB _id as a payload field and generate a stable Qdrant ID, then keep the mapping for lookups. |
| Atlas Search index definitions | Payload indexes created on the collection, and no direct equivalent to the Atlas index definition file | Recreate index intent as payload indexes on filtered fields. Confirm which fields the Atlas definition indexed, as this is not copied automatically. |
| Aggregation pipelines | No direct equivalent; reshape results in the application or in a separate query layer | Move $group, $lookup and $project logic into application code or keep it in MongoDB. Do not expect pipeline stages to run inside Qdrant. |
| Change streams | No direct equivalent; use application-driven sync or a pipeline that writes upserts to Qdrant | Decide how updates to MongoDB reach Qdrant after cutover. Plan a sync job and confirm how deletes are propagated. |
Documented tools for moving MongoDB data into Qdrant
Moving embeddings from MongoDB into Qdrant usually comes down to one documented route, the Qdrant Migration Tool, and one fallback, a custom script built on the client SDK. The cards below cover what each option does, what must exist before it runs, and what to verify before you switch applications over.
Qdrant Migration Tool mongodb subcommand
The Qdrant Migration Tool includes a mongodb subcommand that reads documents from a MongoDB source and writes vectors and payload fields into a Qdrant collection. It runs as a container or binary and streams data in batches, so large collections do not need to fit in memory at once. Check that the source collection, embedding field and payload fields match what you intend to carry over, and confirm the current flags in the official docs before you script the run.
Target collection created first
The migration tool requires the target Qdrant collection to exist before the run starts, so the vector size and distance metric must be set by you, not inferred from the source. A mismatch between the embedding dimension stored in MongoDB and the collection configuration is the most common reason a run fails or writes unusable vectors. Create the collection with a script you can review and keep in version control, and record the settings next to the migration runbook.
Resumable batch runs
The tool resumes interrupted runs, which matters when a migration spans a long maintenance window or a network interruption between MongoDB and the Qdrant host. Before relying on resume, confirm how the tool tracks progress and whether it can safely repeat the last batch without creating duplicate points. Run a small test batch first, then compare point counts in Qdrant against document counts in MongoDB before the full run.
Custom export script with the Qdrant SDK
When the tool cannot express your field mapping, such as nested MongoDB documents that must flatten into specific payload keys or IDs derived from a business key, a custom script using the Qdrant client SDK gives full control. The script reads from MongoDB, builds points with explicit IDs and payloads, and upserts them in batches. The cost is ownership: your team must write retry logic, idempotent IDs and tests, and maintain the script for the life of the migration.
Recall and count checks before cutover
Neither route validates search quality on its own. Compare total point counts, sample documents by ID, and payload values between MongoDB and Qdrant, then run a fixed set of reference queries against both systems and compare the top results. Keep MongoDB as the system of record during this stage, so any mismatch can be corrected by re-running the migration rather than by editing live data in Qdrant.
Sequence for a parallel run and cutover from MongoDB
This sequence moves MongoDB embeddings into a self-hosted Qdrant collection while MongoDB stays the system of record, so each stage ends with a measured comparison before the next one begins. It produces a tested cutover path and a dated rollback window that the team agrees in advance.
Inventory collections and embedding models
List every MongoDB collection that holds vectors, the field that stores each embedding, the embedding model and version that produced it, the vector dimension, and the similarity metric the application expects. Record which application features query each collection and which filters they use. The owning engineering team and the data owner sign off on this inventory. It is done when every vector field has one documented model, dimension and metric, and any mixed-model collection is flagged for a decision before work continues.
Pre-create the Qdrant collection
Create the target Qdrant collection on the self-hosted cluster before running any migration, because the Qdrant Migration Tool's mongodb subcommand requires the collection to exist. Set the vector size to match the embedding dimension and the distance metric to match the source similarity function. Define payload indexes for the fields your filters use. Confirm that the collection is created on storage that meets Qdrant's block-level requirements and that API access is restricted. The step closes when a test point can be written and read back with the expected dimension and metric.
Map document fields to payload
Decide which MongoDB document fields become Qdrant payload, which becomes the point ID, and which stay only in MongoDB and are fetched by ID at query time. Keep the MongoDB _id or another stable key in the payload so every Qdrant result can be traced back to its source document. Confirm the field types for timestamps, arrays and nested objects with the team that owns the application. The mapping is written down and reviewed, and the closing check is a sample of documents that shows each mapped field arrives with the expected type.
Run a pilot batch and compare recall
Migrate a small, representative subset of one collection with the Migration Tool, using a filter that covers different document types and edge cases. For a set of sample queries, run the same vector search against MongoDB Atlas Vector Search or the existing index and against Qdrant, then compare the overlap of the top results and check that filtered results match. Record the differences and tune the index or payload settings if needed. The step is done when the team accepts the overlap on the pilot set and has written down the acceptance criteria used.
Run the full migration
Run the Migration Tool against the full collection in batches, keeping MongoDB read-only for the migration and leaving the application untouched. Watch the logs for skipped or failed documents and rerun any failed batch so the tool resumes from where it stopped. Confirm the Qdrant point count against the MongoDB document count for the same filter, and sample random points for payload accuracy. The step closes when counts match, the exceptions are documented, and each exception has an owner and a decision.
Serve queries from both systems in parallel
Put MongoDB Atlas Vector Search or the existing vector index and Qdrant side by side in a parallel run. Application traffic continues to use MongoDB for answers, while a copy of queries is sent to Qdrant and the results are logged for comparison, or a controlled share of users reads from Qdrant if the application supports it. Keep writes flowing to MongoDB and have a process that brings new or changed documents into Qdrant so both stores stay in step. The stage is done when comparison logs show results that the team has reviewed against the acceptance criteria for a period it set in advance.
Cut over application clients to Qdrant
Switch the application's vector search calls to Qdrant, using the endpoint and API key configuration that the security controls define, and keep MongoDB as the system of record for documents. Change one feature or one collection at a time where possible, and keep the previous query path available for quick reversion during the rollback window. Monitor latency, error rates and result quality after each switch. The step is complete when all designated features query Qdrant, and the rollback path has been tested and documented.
Decommission MongoDB vector indexes after rollback
Keep MongoDB vector indexes and the previous query path in place until the agreed rollback window closes and the team has confirmed that no feature still depends on them. Then remove the vector search indexes from MongoDB, but retain the source documents and embeddings as the system of record and according to your retention policy. Record the decommissioning decision, the final comparison results and the backup state in the change record. The closing check is an updated inventory that lists MongoDB as the document store and Qdrant as the search service.
How document fields become Qdrant payload and filters
The mapping decision starts with a simple rule: the vector goes in the point, and everything you filter or display goes in the payload. In a MongoDB collection, the embedding usually sits in one field of a document, and the remaining fields describe that document: tenant, status, creation date, language, access group, source URL. Each of those that your application uses to narrow a search should become a payload key on the Qdrant point, with a consistent name and type across every record. Before the migration runs, export a sample of documents and list each field with its BSON type, then decide for each one whether it is a filter condition, a display value, or neither. Fields that are only used for display can stay in the payload without an index, while fields in the query path need a decision. Confirm the exact field mapping behavior of the mongodb subcommand in the Qdrant migration documentation against your own sample before you commit to names.
Choosing payload indexes is the step that most affects filtered search speed, and it should follow your real query patterns rather than every field you store. Index keyword fields used for exact matches such as tenant or document type, and index numeric or datetime fields used for ranges such as date windows. Keep the index list short, because each index adds maintenance and memory cost that you will need to size. Nested MongoDB subdocuments and arrays need flattening or a deliberate choice about which path is indexed, and mixed types across documents, such as a field that is sometimes a string and sometimes a number, will produce inconsistent filters. Record the chosen index set in the design document together with the filter queries it serves, and test each filter query on the migrated collection before cutover.
IDs need their own decision. MongoDB _id values are 24-character ObjectId strings or other types, while Qdrant point IDs must be unsigned integers or UUIDs. Either derive a UUID or integer from the _id and store the original value in a payload key such as mongo_id, or generate new IDs and keep the mapping in MongoDB, which should remain the system of record. Storing the original _id in the payload is usually the safer choice, because it lets application code and audits trace any vector back to its source document and makes re-runs idempotent. Embedding-only fields are not payload: they become the vector itself, and the vector size and distance metric must match the pre-created collection. Metadata that is only needed after a search, such as a title or a text excerpt, belongs in the payload but should not be indexed, and large text bodies should stay in MongoDB, with only a reference kept in Qdrant.
What drives effort and cost in a MongoDB to Qdrant move
This table lists the factors that raise or lower the effort of moving embeddings from MongoDB into a self-hosted Qdrant collection, with what each factor changes and what to ask for in a quote. Read each row as a question to answer before scoping, since most rows change the work in more than one place. The main takeaway is that vector count, payload design and the state of your embedding pipeline usually matter more than the migration tool run itself.
| Driver | Why it changes effort or cost | How to keep it down or what to ask for |
|---|---|---|
| Number of collections and vectors | Each MongoDB collection that holds embeddings maps to a Qdrant collection that must be pre-created with the right vector size and distance. More collections and more vectors mean more runs, more verification and more storage to plan. | Consolidate collections that share a model and schema. Ask the partner to inventory every collection, document count and vector dimension before quoting. |
| Payload size and filtered fields | Each MongoDB document field that is copied into Qdrant payload adds data to store and index. Large nested documents need flattening or trimming, and every field used in filters needs a payload index decision. | Copy only fields that searches or filters use. Ask for a field-by-field mapping sheet as a deliverable before the build starts. |
| Embedding model changes | If the move also changes the embedding model, vectors must be regenerated, which means new dimensions, a re-embedding job and recall testing against the old results. This is usually the largest single cost in the project. | Keep the existing model for the first move and treat re-embedding as a separate phase. Ask whether the quote includes re-embedding and who pays for the compute. |
| Application query rewrites | MongoDB Atlas Vector Search queries, aggregation pipelines and filter syntax must be rewritten as Qdrant search calls. Each query path, including reranking and hybrid logic in the application, adds development and test time. | List every query path in the application. Ask for a test plan that compares result sets from both systems on the same inputs. |
| Qdrant infrastructure sizing and block storage | Qdrant needs block-level storage with a POSIX-compatible file system and cannot run on NFS or S3. Choosing the wrong storage class or undersizing RAM and disk forces rework on live infrastructure. | Confirm SSD or NVMe block volumes in your cloud or data center before the install. Ask the quote to state the node count and storage assumptions, and the source of the sizing estimate. |
| Security setup | A self-deployed Qdrant instance has no authentication by default and listens on all interfaces. Setting up API keys, JWT access per collection, TLS and audit logging adds configuration and review work before any data is loaded. | Ask for the security configuration to be scoped as part of the install, not added after cutover. Confirm which controls your security team must review. |
| MongoDB keeps the system of record | If MongoDB remains authoritative for documents, a sync or re-ingest path must keep Qdrant current. Ongoing synchronization is a recurring engineering cost that a one-time copy does not cover. | Decide the sync method and its owner early. Ask whether the quote covers a sync job and how deletions and updates are propagated. |
| Parallel run length and cutover | Running MongoDB and Qdrant side by side so results can be compared extends operating cost for both systems. Longer parallel runs mean more infrastructure time and more reconciliation effort. | Define acceptance criteria for recall and result parity before the run starts. Ask the quote to state how many parallel-run cycles are assumed. |
| Team's Qdrant experience | A team new to Qdrant needs time to learn collection tuning, payload indexes, snapshots and upgrade rules. Without that knowledge, more work shifts to the partner or to later incidents. | Ask what knowledge transfer and runbooks are included. Ask who on your side will own the cluster after handover. |
Where MongoDB to Qdrant migrations usually go wrong
Most problems in this migration come from a handful of decisions made before any vectors move: the collection definition, the payload design, the identifiers, the access settings and the way cutover is judged. Each card below names one of these failure points, what it looks like in practice, and the check that prevents it.
Mismatched vector size or distance
The target collection must declare the same vector size and distance metric that the embedding model produced in MongoDB. If the size differs, the migration fails or writes unusable data. If the metric differs, scores look plausible but ranking changes. Confirm the dimension and metric from the embedding model card and from a sample stored document, then create the collection with those values before the tool runs.
Missing payload indexes
Fields used in filters, such as tenant, status or date, need payload indexes in Qdrant. Without them, filtered searches can slow sharply on large collections, and the problem often appears only after cutover. List every field your MongoDB queries filter on, create matching payload indexes on the target collection, and time filtered queries against a realistic data volume before switching traffic.
Migration docsIDs that do not line up
MongoDB uses ObjectId values and application keys, while Qdrant points need unsigned integer or UUID identifiers. If the mapping is not deliberate, updates and deletes in MongoDB will not reach the matching Qdrant point, and results cannot be joined back to source documents. Decide the ID scheme first, store the original MongoDB _id as a payload field, and test that a sample record round-trips in both directions.
Deploying without authentication
Self-deployed Qdrant listens on all network interfaces and has no authentication configured by default. A migration rehearsal target left open can expose every migrated embedding and its payload. Before loading any data, enable an API key, restrict network access to the application subnet, and confirm that the migration tool connects with the key. Treat the staging instance with the same controls as production.
Qdrant security docsTreating Qdrant as the record store
Qdrant holds vectors and a copy of selected fields for search. It is not a replacement for MongoDB documents, transactions or the full record set. Teams that move records along with vectors end up with two sources of truth and no clear owner for deletes or corrections. Keep MongoDB as the system of record, store only the fields needed for filtering and display in payload, and fetch full documents from MongoDB by ID.
Cutover without a recall comparison
Switching clients to Qdrant on the strength of a successful migration run does not show that search quality matches MongoDB. Differences in metric, index settings or ID mapping can shift results without any error. Before cutover, run a fixed set of real queries against both systems, compare the top results and overlap, and sign off on the threshold with the team that owns search quality.
Questions buyers ask before moving MongoDB vectors to Qdrant
What drives the cost of moving MongoDB vectors to self-hosted Qdrant?
The cost comes from four places: the engineering time to design the collection and payload mapping, the infrastructure that runs Qdrant, the migration run itself, and ongoing operations. The open-source Qdrant engine is free to self-host under the Apache-2.0 license, so the license is not the main line item. Infrastructure is separate: block storage on SSD or NVMe, enough RAM for the vectors and indexes, and any node count you need for high availability. Your cost rises with the number of vectors, vector dimensions, payload size, the number of collections, and how many environments you need for testing. Ask any partner for a quote that lists each of these components separately, with one-time work and recurring operations shown apart.
How long does a MongoDB to Qdrant migration take?
Duration depends on the size of the collections, how cleanly the MongoDB documents map to Qdrant points and payload, how many sources and environments are involved, and how much recall testing you require before cutover. The migration tool streams data in batches and can resume an interrupted run, so the copy itself is often the shorter part. The longer parts are the schema decisions, pre-creating the target collection with the right vector size and distance metric, validating search results against MongoDB, and switching application clients. No duration is given here because none is supported by a researched figure. Ask for a timeline tied to a written scope with named phases and test exit criteria.
What does our team need to provide before the work starts?
Three inputs drive most of the early work. First, a collection inventory: which MongoDB databases and collections hold vectors, their document counts, and which ones are live. Second, embedding model details: the model name and version, the vector dimension, and the distance metric used for similarity, because the Qdrant collection must match them. Third, query logs or representative query samples, so recall and filter behavior can be checked against real traffic. You should also provide the document schema, the fields that will become payload and payload indexes, and access to a non-production Qdrant environment for rehearsal. Missing any of these usually adds rework after the first trial run.
Can our internal team run this migration alone?
A team with MongoDB and search experience can usually handle the migration, provided it has someone who can own Linux, container or Kubernetes operations, and someone who can judge search quality. The work is not only the copy. It includes collection design, payload mapping, securing the Qdrant endpoint, testing recall, and planning operations after cutover. Qdrant ships with no authentication by default, so the security setup must happen before any data is loaded. If your team lacks capacity or any of these skills, a partner can take on a defined part of the scope, such as design and rehearsal, while your staff keep ownership of the production system. Decide that split in the written scope.
Does MongoDB stay the system of record after the move?
In most designs, yes. The migration copies embeddings and selected metadata into Qdrant so that similarity search runs there, but the source documents remain authoritative in MongoDB or MongoDB Atlas Vector Search. Keeping MongoDB as the system of record means updates, deletes and business rules still start in MongoDB, and your sync process carries those changes to Qdrant. Decide early how new and changed documents will be written to Qdrant, how deletions propagate, and how you will detect drift between the two stores. Confirm with your own architecture review whether any application will read from Qdrant alone, because that changes what must be kept in sync.
How do we secure Qdrant before cutover?
Treat security as a prerequisite, not a later step. The Qdrant security documentation states that self-deployed instances listen on all network interfaces and have no authentication configured by default. Before any MongoDB data is loaded, plan to restrict network exposure to the services that need it, enable API keys, use read-only keys for query-only clients, and configure TLS for both REST and gRPC. If you need per-collection permissions, the documentation describes JWT-based access control. Enable JSON audit logging of authenticated API operations where your policy requires it. Confirm each setting against the version you deploy, and test that unauthenticated requests are refused from outside the trusted network before cutover.
What is the biggest risk in a MongoDB to Qdrant move?
The most common failure is a silent mismatch between the source and target: a wrong vector size or distance metric, payload fields that were not mapped, or filters that behave differently than they did in MongoDB. Search can still return results, so the error may only show up as lower relevance. Guard against it by pre-creating the collection deliberately, comparing result sets for a sample of real queries before cutover, and keeping MongoDB live until the comparison passes. A second risk is an unsecured endpoint left running after the migration. Make security checks and recall tests exit criteria rather than optional tasks.
How DeployOpen scopes and delivers a Qdrant migration
DeployOpen plans and delivers the move from MongoDB to self-hosted Qdrant inside your own infrastructure, starting with a written scope that names the collections, payload fields and cutover conditions. Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any data moves.
How we scope
- Inventory the MongoDB collections, embedding fields, vector dimensions and distance settings that will move
- Agree in writing which MongoDB collections stay the system of record after the move
- Define the payload fields, filters and payload indexes the Qdrant collection must support
- Confirm the Qdrant hosting path, storage type and access model before the build starts
How we build
- Pre-create the target Qdrant collection with the vector size and distance metric matched to the source
- Configure and run the Qdrant Migration Tool mongodb subcommand in batches against a staging collection
- Test search results and filtered queries against the source embeddings before any client switches
- Harden the deployment with keys, TLS, network limits and audit logging as the agreed scope requires
How we hand over
- Deliver a runbook covering the migration commands, batch settings, resume steps and validation checks
- Document the field-to-payload mapping and the reasons behind each payload index decision
- Record the cutover steps, rollback path and how application clients switch endpoints and keys
- Train your operators on routine checks so your team can rerun or extend the migration later
How we support
- Support after handover is available as a retainer, scoped in writing with your team
- Retainers can cover upgrades to newer Qdrant releases, with each upgrade tested before rollout
- Ongoing testing can re-check recall and filter behavior as your MongoDB source data changes
- Ask for the support boundaries, response expectations and change process in the written scope

