Migrating from SurrealDB to Qdrant

Moving from SurrealDB to self-hosted Qdrant moves vector retrieval across cleanly but needs redesign for graph, live query, transaction and row-level permission features. This page covers the sequence, data work, risks and effort drivers.

On this page

Migrating from SurrealDB to Qdrant: what moves and what needs rework

This is a retrieval re-platform. Vectors, payloads and search logic move to Qdrant, while SurrealDB's multi-model, live query, transaction and row-level permission features need redesign. Renewals, licensing reviews, data residency requirements and lock-in concerns usually trigger the move, with SurrealDB serving vector or hybrid retrieval inside a wider data model. The license facts belong in that review. The LICENSE file in the surrealdb repository is Business Source License 1.1 for SurrealDB 3.0, and it states that it is not an Open Source license. The Additional Use Grant covers use that is not a Database Service. The Change Date is 2030-01-01, and the Change License is Apache License 2.0. Counsel should read the file directly, since its exact wording determines how your deployment is treated.

Platform or data engineers usually own the migration, with application owners confirming which queries and ranking behavior matter and security staff owning the access design. Vectors and payloads map most directly. The Apache-2.0 migration tool for Qdrant lists supported sources such as Pinecone, Milvus, Weaviate, Chroma, Elasticsearch, OpenSearch and pgvector. SurrealDB does not appear in that list, so confirm this in the repository and plan a custom export from SurrealQL with resumable batches. Check that the embedding model and vector dimensions match what the Qdrant collections will store. Hybrid retrieval needs a re-test against a sample of production queries, because scoring can differ between engines. Live queries, ACID transactions and row-level permissions should be treated as redesign items. List every application path that depends on them, then decide where each rule lives in the application or service layer.

Which SurrealDB features map cleanly to Qdrant

This table compares SurrealDB capabilities in a typical deployment with their closest self-hosted Qdrant equivalents and marks each migration note as clean, needs rework or gap. Clean rows move with little design change, rework rows need a data model or permission review, and gap rows need another system or code change. SurrealDB can run embedded, as a single node or as a distributed cluster, while self-hosted Qdrant runs as a single node or distributed, and Qdrant Cloud and Hybrid Cloud are the managed options.

SurrealDB capabilityQdrant equivalentMigration note
Vector retrievalQdrant vector search, Apache-2.0 engineClean: vector search maps directly; confirm distance metric and index settings with a sample.
Document-style recordsPoints with payloads in Qdrant collectionsNeeds rework: model each record as a point with a payload, and test with a sample export.
Full-text and hybrid retrievalQdrant full-text and combined query features, depending on releaseNeeds rework: confirm full-text and hybrid support in current Qdrant docs for your release.
Graph and relational queriesApplication logic or a relational store such as PostgreSQLGap: move relationships out of SurrealDB into application logic or PostgreSQL.
Live queriesPolling or an event pipelineGap: rebuild change notifications with polling or an event pipeline.
ACID transactionsNo direct equivalentGap: keep the system of record in a transactional store outside Qdrant.
Row-level permissionsAdmin and read-only API keys, JWT per-collection read or writeNeeds rework: Qdrant's documented controls are per collection; confirm they meet your row rules.
SurrealQL call sitesQdrant REST and gRPC APIs or client librariesGap: rewrite each query as a Qdrant API or client call.
Time-series, geospatial and key-valuePayload fields or a separate store, per workloadNeeds rework or gap, decided per workload; confirm each one before planning the move.

Moving SurrealDB data into Qdrant: export paths and what to rebuild

Qdrant's Apache-2.0 migration tool lists Pinecone, Milvus, Weaviate, Chroma, Elasticsearch, OpenSearch and pgvector as sources. SurrealDB is not among them, so the export is custom work: export records through SurrealDB's own export or query methods into a neutral format, then load them through Qdrant's API or client libraries. Confirm the export options for your SurrealDB version before you plan.

Vectors, IDs and payloads

Export IDs, vectors and metadata together. Each record needs its ID, its vector and its payload fields in one neutral format, such as JSON Lines, so the load can be replayed and checked. Confirm with your SurrealDB version whether vectors come out as numeric arrays at full precision. If your embedding model changed at any point, the stored vectors may not match new queries, so plan to re-embed from source text.

Collection configuration

Record vector size, distance metric and indexes before export. SurrealDB index definitions do not carry over to Qdrant automatically, so read the vector dimension, the distance metric and every field used for filtering from the source schema and write them down. Create the Qdrant collection and its payload indexes before loading. Keep the source definitions in the migration record so the target can be checked against them after the load.

Relational and transactional data

Keep transactional records in a system of record. SurrealDB combines documents, graph relations and ACID transactions, while Qdrant stores vectors with payloads and does not provide relational joins or transaction boundaries. Decide which tables and relations stay in SurrealDB or move to another relational database. Store only the shared record ID in Qdrant payloads so search results can be joined back to the system of record.

Application integrations

Find every SurrealQL call site and SDK usage. Search and vector calls written in SurrealQL, SDK calls and live query consumers each need a Qdrant equivalent or a different design. Live queries push changes to subscribers, so confirm in Qdrant's current documentation whether an equivalent exists before you remove them. Until then, plan for polling or application-level events, and test each consumer against the new response shape.

Identities and access controls

Reissue access for each collection. SurrealDB handles users, tokens and row-level permissions inside the database, so map each SurrealDB role to a Qdrant API key or JWT claim with per-collection read or write scope. Qdrant supports read-only keys and JWT-based granular access since v1.9.0. Row-level rules may need application-side filtering or payload filters, so test them with real user accounts. Qdrant instances expose no authentication by default, so enable keys and TLS before any data loads.

Qdrant security docs

Backup and restore

Test a restore on the target version. Qdrant snapshots capture a collection so you can roll back a failed load or recover a node, and they form the Qdrant-side backup path. Run a test restore onto the same Qdrant version you will run in production. Keep the SurrealDB export files until that restore has passed, and record the snapshot schedule and retention in your runbook.

Qdrant snapshots guide

The migration sequence from inventory to decommission

The sequence moves one SurrealDB workload at a time to a self-hosted Qdrant cluster, with a written output at each stage. Each output gives the next stage a checkpoint, so the go or no-go decision rests on recorded evidence.

  1. Inventory collections, queries and access rules

    Your team, with DeployOpen if engaged, lists every SurrealDB table or record set used for vector or search data. For each one, record the vector size, distance metric, payload fields, the query paths that call it, every live query consumer, and the row-level permissions that gate access. Qdrant controls access per collection and per API key, so row-level rules must be mapped to application logic or separate collections. Qdrant has no direct equivalent of SurrealDB live queries, so each consumer needs a replacement plan such as polling or application events. The output is a migration register, and the step is done when application owners have signed off on it.

  2. Pilot one non-critical collection on Qdrant

    Choose a collection with low business impact and load it into a self-hosted Qdrant node on local SSD or NVMe block storage, since network file systems and object storage are not supported. Enable the security settings from the start: API keys, TLS for REST and gRPC, and per-collection access. Run a fixed test set of queries against both stores and compare returned IDs, scores and filters. The output is a retrieval comparison and a runbook covering installation, snapshot backup, restore and upgrades. The step is done when someone other than the runbook's author has followed it successfully.

  3. Run both stores in parallel

    Have the application write to both SurrealDB and Qdrant, or read from both while SurrealDB remains authoritative. Sample production queries and compare top results, filter behavior and latency across both stores. Group each difference by cause, such as scoring or metric mismatches, payload filter gaps or missing records, in a difference report. The parallel run closes when the team agrees go or no-go criteria in writing, including which differences are acceptable and who makes the final call.

  4. Cut over with a tested rollback

    In a planned write window, freeze writes to SurrealDB and run a final delta export into Qdrant, then confirm record counts and a checksum sample. Switch the read path to Qdrant through a feature flag or configuration key, so both the switch and its reversal are a single change. Test the rollback during rehearsal before the window, and test the forward path as well. The output is a signed cutover checklist naming the operator, the reviewer and the rollback trigger.

  5. Retire SurrealDB and close access

    Keep the SurrealDB export and the Qdrant snapshots for the retention period agreed with your compliance owner, stored in encrypted locations with access logged. Revoke SurrealDB credentials and any Qdrant keys used only for the migration, then remove SurrealDB from application configuration, pipelines and backup jobs. Confirm that no live query consumer still connects to SurrealDB. The output is a decommission record listing what was removed, where each retained copy is held and who approved each step.

The parallel run gates cutover and keeps SurrealDB as the fallback

The diagram starts with inventory and a pilot, then moves into the parallel run. During that run the application writes each record to both SurrealDB and Qdrant, and result comparison checks that both return matching answers. Qdrant is reached over TLS with an API key or JWT access, and both stores stay inside the client network trust boundary. The go or no go gate sits between comparison and cutover, so the decision rests on evidence. If cutover misbehaves, the rollback edge returns reads to the SurrealDB read path. Decommission comes last, once the run and the rollback window have closed.

Migration phases, with the client network trust boundary and rollback path to SurrealDB.

Securing Qdrant before any data arrives

Self-deployed Qdrant is insecure by default: it listens on all network interfaces and has no authentication configured. Before any SurrealDB export or import runs, bind the service to private interfaces that only your application subnets and migration host can reach, and confirm that the listener settings in your deployment match this. Next, create an admin API key for operators and a read-only key for query services, and enable TLS for both the REST and gRPC endpoints, which Qdrant has supported since v1.2.0. Keep the admin key out of application configuration, and store it in the same secrets manager your other services use. Treat these steps as a gate: no migrated records should land in a cluster that still accepts anonymous calls.

Qdrant's JWT-based access control, available since v1.9.0, grants read or write permissions per collection, so a service that only searches can be limited to read access on the collections it queries. Confirm that the release you deploy includes this, and check the Qdrant security documentation for how tokens are signed, issued and rotated, since those choices belong to your identity team. Enable JSON audit logging of authenticated API operations, available since v1.17.0, and ship the logs to the same store as your other security logs so that bulk writes during the import are attributable to a specific key or token. Confirm the logging fields against the current docs before you write alert rules around them.

Row-level permissions are the hardest mapping. SurrealDB evaluates permissions per table and per record in SurrealQL, so a user can see only the rows their rule allows. Qdrant's JWT grants work at collection level, which is coarser, so each SurrealDB permission rule needs a decision before cutover. For example, (illustrative) if sales staff should only retrieve embeddings for their own accounts, you can split data into collections by access tier, or keep one collection and force every query through an application service that adds a filter from the caller's verified identity. Write down each SurrealDB table permission, assign it one of these patterns, and have your security reviewers sign off. Confirm in the Qdrant security documentation whether the release you run offers any finer control before you accept the coarser design.

What drives migration cost and duration

This table lists the drivers that most change the cost and duration of a move from SurrealDB to self-hosted Qdrant, with a way to keep each one down. Use it as a checklist to size your own environment before you request a quote. The main takeaway is that feature use beyond vectors and the access model usually set the effort more than the raw vector count.

DriverWhy it moves cost or timeHow to keep it down
Number of collections and vector volumeTotal volume sets storage and transfer time. Qdrant needs block storage on a POSIX file system, so NFS and S3 are out.Inventory collections and record counts first. Size SSD or NVMe volumes before cutover planning.
Use of SurrealDB beyond vectorsQdrant is a vector search engine, so graph traversal, live queries and transactions need redesign.Map each feature to its owner. Decide whether it moves to the application, another datastore or is retired.
Embedding model changeA model change forces re-embedding, which costs compute, and relevance must be re-checked.Move existing vectors as they are where possible. Build a fixed query set to compare results before and after cutover.
Access model complexitySurrealDB row-level rules must be re-expressed through Qdrant's admin and read-only keys and per-collection JWT permissions.Export the permission rules first. Map each to a role and test it against the target keys before cutover.
Operating modelThe community Helm chart lacks zero-downtime upgrades and automatic shard rebalancing, which shifts upkeep to your team.Compare the Helm chart, the enterprise operator in Qdrant Private Cloud and in-house operations against your upgrade and staffing needs.
Integrations and call sitesEvery application that calls SurrealDB needs a new client, query and error handling.Search code for SurrealQL and SDK calls. Group call sites by feature so each can be tested and cut over separately.
Compliance evidence needsAssessors will ask for access control, audit logging and backup records for the new Qdrant environment.Confirm required controls with your auditor first. Collect evidence from the target setup as it is built.
Cost componentsQdrant's open-source engine is free to self-host, while infrastructure and staff time recur. Qdrant Cloud, Hybrid Cloud and Private Cloud are priced separately.Request a quote from the written scope. Ask for one-time migration work and recurring run costs as separate lines.

What usually goes wrong and how to prevent it

These six failures account for most of the problems teams hit when moving from SurrealDB to self-hosted Qdrant. Several come from treating Qdrant as a direct replacement for a database that also handles permissions, transactions and live queries. Each prevention step maps to a check you can run before cutover.

Open defaults and unsupported storage

Qdrant's security documentation states that self-deployed instances listen on all network interfaces and have no authentication configured by default. A container started with a quick-start command is reachable by anyone who can reach the host's network. Set an admin API key and a read-only key, enable TLS for REST and gRPC, and bind the ports to private interfaces. Also run storage on local block devices with a POSIX file system: NFS and object storage are not supported, and SSD or NVMe is recommended.

Qdrant security docs

Qdrant as the system of record

Qdrant stores vectors and their payloads for search, but it is not a transactional or relational database, so it does not give you SurrealDB's ACID transactions or record relationships. If application records exist only in Qdrant, a failed write or partial sync leaves no authoritative copy to rebuild from. Keep source records in a transactional store such as PostgreSQL, treat Qdrant as a derived index, and confirm you can rebuild it from source data before cutover.

Silent relevance drift after re-embedding

Scores can change without any error when embeddings are regenerated with a different model or version, or when the distance metric in Qdrant differs from the one your SurrealDB index used. Results still return, so nothing fails loudly. Run both systems in parallel on a fixed set of representative queries, compare top results and rankings, and do not switch traffic until overlap is reviewed. Record the embedding model and metric with each collection so the next re-embedding is traceable.

Permission gaps across users and tenants

SurrealDB enforces row-level permissions inside the database itself. Qdrant's access control is applied per API key, JWT token and collection, with per-collection read or write permissions available since v1.9.0, so per-record rules have to be rebuilt in your token design or application layer. Map each SurrealDB permission rule to a collection, a payload filter or a token claim, and confirm which of these your version can enforce. Then test with accounts from every tenant and confirm no result leaks before cutover.

Live query consumers that break

SurrealDB live queries push changes to subscribed clients. Any dashboard, worker or service that depends on that push will stop receiving updates at cutover unless it is changed. Do not assume Qdrant offers a matching push feed for your version. Inventory every client that opens a live query, polls, or reacts to change events, then assign each one a replacement such as polling, a message queue or change capture from the source database. Confirm the list with each consumer's owner before cutover.

Untested restores and upgrades

Snapshots from one Qdrant version may not restore cleanly onto another, so confirm version compatibility and run a test restore before you rely on a snapshot as your cutover backup. On the community-supported Helm chart, upgrades do not include enterprise features such as zero-downtime upgrades, so write the rollback steps before you upgrade. Rehearse the rollback on a copy of the cluster and keep the pre-upgrade snapshot until the new version has run cleanly under load.

Qdrant snapshots docs

How the move differs by starting point

Illustrative: one application uses SurrealDB only for vector search, while its business records live elsewhere or in a small set of tables. This is the smallest scope. The work is mostly an embedding export, a collection design in Qdrant, and a query change in one service, so a single-node pilot is a sensible first step.

  • Inventory the embedding pipeline: List the tables that hold vectors, the model and dimension that produced them, and the metadata filters the application applies.
  • Run a single-node pilot: Start one Qdrant instance on block storage with SSD or NVMe drives, and load a copy of the collection before any production traffic moves.
  • Rebuild filters as payload fields: Map each SurrealQL condition used in vector queries to a Qdrant payload filter, then test every filter against results you already know.
  • Keep SurrealDB as the source of truth: Write new embeddings to both stores during the pilot until the result comparison passes.

Check whether any service also uses live queries or graph traversal next to the vector search, because those needs turn a small pilot into a larger project.

Questions buyers ask about migrating from SurrealDB to Qdrant

Does Qdrant have a built-in tool to import SurrealDB data?

No. Qdrant's migration tool, published under Apache-2.0, supports sources such as Pinecone, Milvus, Weaviate, Chroma, Elasticsearch, OpenSearch and pgvector, and SurrealDB is not on that list, so the export from SurrealDB is custom work. Plan for a small extraction job that reads IDs, vectors and payload fields from SurrealDB and writes them to Qdrant through its API. Qdrant's transfers can be resumed, which helps with large loads, but the source side still has to be built and tested. Check the qdrant/migration repository for the current source list before you commit to a plan. Also confirm how your SurrealDB data is modeled, because graph relations, live queries and row-level permissions have no direct one-to-one equivalent in Qdrant and must be handled in the application or access layer.

What does migrating from SurrealDB to Qdrant cost?

The quote follows the written scope, and no single price applies to every migration. The main cost drivers are the number of query paths to rewrite, the number of data types and relations to extract, the data volume to move and validate, how much permission and schema logic needs redesign, the number of environments, and the cutover window. Costs fall into separate parts: your staff time, the infrastructure for Qdrant and any test environments, and the external work in the agreed scope. Most of the migration effort is one-time, while hosting, storage, backups and operations recur after cutover. Engagements are usually fixed-scope, with deliverables and timelines agreed in writing before work starts. Ask for a quote that separates inventory, extraction, load, application changes, testing, cutover and handover, and that lists what is excluded.

How long does a SurrealDB to Qdrant migration take?

Timing depends on the inventory, so confirm the schedule once that step is complete. The number of query paths is the largest variable, followed by the number of tables, graph relations and permission rules, the data volume, and the number of environments to validate. A setup with a few simple collections and query paths moves faster than one where SurrealQL statements combine document, graph and full-text retrieval in a single request. Build in time for a parallel run, validation of result quality against your test queries, and a cutover window agreed with the business owner. Ask for milestones tied to the inventory output, with dependencies named, including access approvals, change windows and sign-off.

What must our team provide for a SurrealDB to Qdrant migration?

Your team must provide the knowledge and access that only your organization holds, plus a named person who can make decisions. The inputs are:

  • Schema knowledge: tables, record links, graph relations, indexes, and how vectors and payload fields are stored.
  • Query logs: real SurrealQL statements with their frequency, so query paths can be counted and prioritized.
  • Access model: which services and users connect, the row-level permission rules, and the credentials each one uses.
  • Test queries: known questions with expected results, used to check the new system after load.
  • A business owner: one person who signs off on scope, cutover and any accepted differences in search results.

Collect these before the inventory starts, because the inventory cannot finish without them.

Can our in-house team migrate from SurrealDB to Qdrant ourselves?

Yes, if the team has operations experience with self-hosted databases and has already run vector search in production. Confirm these points before you start:

  • Who can export SurrealDB data safely from production, and in what window.
  • Whether anyone has previously tuned vector indexes, filtering and memory use.
  • Storage: Qdrant needs block-level storage with a POSIX-compatible file system, and it cannot run on NFS or S3-style object storage. SSD or NVMe drives are recommended.
  • Deployment: the community Helm chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing, so decide whether you need them.
  • Security: self-deployed instances listen on all interfaces with no authentication by default, so API keys or JWT access control, TLS and network rules must be in place before loading data.
  • Backup and restore: test snapshot restores before cutover.
Is Qdrant free to use if we self-host it?

The open-source Qdrant engine is free to self-host under Apache-2.0, so the software license carries no fee. Your costs sit elsewhere: servers or Kubernetes capacity, SSD or NVMe storage, backups, monitoring, upgrades, on-call coverage and the staff who run the cluster. These recur over time and grow with data volume, replica count and query load. If you choose Qdrant Cloud, pricing depends on the tier. The free single-node tier is limited to 0.5 vCPU, 1 GB RAM and 4 GB disk, Standard is usage-priced, and Premium carries a minimum spend. Hybrid Cloud and Private Cloud are priced through Qdrant sales. Compare total cost of ownership across these options and confirm where your data must reside before you choose, using the Qdrant pricing page as the starting point.

Is the SurrealDB license a reason to move to Qdrant?

It can be a factor, but the answer depends on how your organization uses SurrealDB, so ask legal to review it. The SurrealDB LICENSE file is the Business Source License 1.1 for SurrealDB 3.0, and the file states that it is not an open source license. The Additional Use Grant permits use of the work provided it is not used as a Database Service. The Change Date is 2030-01-01, when the Change License, Apache License 2.0, applies. The README says certain core components are Apache License 2.0 and libraries and SDKs are Apache License 2.0 or MIT, so confirm which components you run. If your team offers SurrealDB-backed services to customers, the Database Service restriction needs close review. Qdrant is Apache-2.0, so its terms differ from the terms that apply to SurrealDB today.

How DeployOpen scopes and runs a SurrealDB to Qdrant migration

DeployOpen scopes each SurrealDB to Qdrant migration as a fixed-scope engagement, with the written scope fixing which collections, records, vectors and access rules move. Work runs inside your own infrastructure, from the Qdrant deployment and its security settings through data transfer, cutover and documentation. Ongoing support and upgrades are available as a retainer.

How we scope

  • Map which SurrealDB tables, graph edges and queries have a Qdrant equivalent, and which do not.
  • Confirm which SurrealQL queries, live queries and row-level permissions the application relies on today.
  • Agree the written scope up front, covering collections, payload fields, cutover window and acceptance tests.

How we build

  • Deploy self-hosted Qdrant on block storage with SSD or NVMe, since NFS and S3-style object storage are not supported.
  • Turn on API keys, TLS and per-collection JWT permissions, because default Qdrant instances have no authentication.
  • Script the SurrealDB export, since Qdrant's migration tool does not list SurrealDB as a source.

How we hand over

  • Test record counts, vector dimensions and payload fields against SurrealDB before cutover.
  • Run a cutover rehearsal with a written rollback path and agreed owners for each step.
  • Document the deployment, access model, backups and runbooks, with Qdrant snapshots covered in the handover.

How we support

  • Configure JSON audit logging of authenticated API operations, available in Qdrant v1.17.0 and later.
  • Plan upgrades against Qdrant releases, such as v1.19.2, with testing before each change in production.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.