KEY ADVANTAGES
Why teams choose SurrealDB over MongoDB
MongoDB started as a document store and later added search, vector, and limited graph features through separate systems. SurrealDB runs all of this natively in one engine.
HOW IT COMPARES
SurrealDB vs. MongoDB
As apps demand richer models, temporal logic, and AI retrieval, document-centric systems with external subsystems hit composability limits. SurrealDB runs everything in one distributed engine.
Feature
MongoDB
SurrealDB
Architecture
Document-first with secondary views, full-text search, and vectors requiring duplicated data and separate async pipelines.
Unified, distributed multi-model engine. Query execution, indexing, storage, and transactions operate inside a single system.
Models
Document-first. Graph traversal support is limited. Relational semantics are not planner-driven.
Native support for document, relational, graph, key-value, time-series, vector, full-text search, and geospatial.
Transactional consistency
ACID transactions are limited, costly under contention, and don't extend to search, vectors, or graph traversal.
ACID transactions across documents, relational joins, graph traversal, vector search, and full-text search.
Query execution
Queries split into multiple stages, with $search required first. No unified planner across document, search, vector, and graph operations.
Single declarative query language with a unified execution plan. All retrieval primitives are co-planned.
Indexing
Compound indexes may include only one array field. Deeply nested or multi-array document models cannot be efficiently indexed.
Indexing across arrays, nested fields, vectors, and relationships without compound multikey restrictions.
Temporal capabilities
No temporal graph querying. Time filters cannot participate directly in traversal semantics.
Temporal querying is first-class. Time constraints participate directly in graph traversal.
Pricing
Costs increase with sharding, coordination overhead, Atlas dependency, and duplicated subsystems.
Unified engine eliminates the need for separate search, vector, and graph systems. Costs scale linearly.
TRUSTED BY
Enterprise teams building on SurrealDB
From knowledge graphs to AI assistants - how enterprise teams are building on the context layer.
Samsung
Unlocking insights with knowledge graphs
Samsung Ads uses SurrealDB to build dynamic, real-time knowledge graphs for smarter campaign execution - collapsing three legacy data stores into one.
Read case study
Verizon
AI assistant empowering 10,000 technicians
Verizon uses SurrealDB to power a generative AI assistant for 10,000 field technicians, delivering instant access to documentation, outage updates, and workflows.
Read case study
Tencent
Unified infrastructure monitoring
Tencent consolidated nine backend tools into one real-time monitoring platform powered by SurrealDB's multi-model context graph.
Read case study
PolyAI
High-performance customer service AI powered by RAG
PolyAI connects SurrealDB to Agent Studio for low-latency, customer-controlled RAG across voice AI experiences.
Read case study
FREQUENTLY ASKED QUESTIONS
SurrealDB vs. MongoDB
GET STARTED
Migrate from MongoDB
The context layer for AI agents. Unify data. Unlock intelligence. Scale anywhere.
SOC 2 Type 2
GDPR
Cyber Essentials Plus
ISO 27001