Skip to content
NEW BENCHMARKS

SurrealDB 3.x by the numbers

View

1/3

SurrealDB vs. MongoDB

SurrealDB is a unified, transactional, multi-model database. MongoDB is a document-oriented database with multiple specialised subsystems.

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.

True multi-model engine

Document, relational, graph, vector, full-text, temporal, and geospatial access patterns natively in one system.

Temporal graph querying

Time is treated as a first-class constraint within graph traversal.

Unified indexing

No compound multikey limitations across arrays or nested fields.

ACID without locking

Transactions across all data models without global or table-level locking.

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.

Architecture

MongoDB

Document-first with secondary views, full-text search, and vectors requiring duplicated data and separate async pipelines.

SurrealDB

Unified, distributed multi-model engine. Query execution, indexing, storage, and transactions operate inside a single system.

Models

MongoDB

Document-first. Graph traversal support is limited. Relational semantics are not planner-driven.

SurrealDB

Native support for document, relational, graph, key-value, time-series, vector, full-text search, and geospatial.

Transactional consistency

MongoDB

ACID transactions are limited, costly under contention, and don't extend to search, vectors, or graph traversal.

SurrealDB

ACID transactions across documents, relational joins, graph traversal, vector search, and full-text search.

Query execution

MongoDB

Queries split into multiple stages, with $search required first. No unified planner across document, search, vector, and graph operations.

SurrealDB

Single declarative query language with a unified execution plan. All retrieval primitives are co-planned.

Indexing

MongoDB

Compound indexes may include only one array field. Deeply nested or multi-array document models cannot be efficiently indexed.

SurrealDB

Indexing across arrays, nested fields, vectors, and relationships without compound multikey restrictions.

Temporal capabilities

MongoDB

No temporal graph querying. Time filters cannot participate directly in traversal semantics.

SurrealDB

Temporal querying is first-class. Time constraints participate directly in graph traversal.

Pricing

MongoDB

Costs increase with sharding, coordination overhead, Atlas dependency, and duplicated subsystems.

SurrealDB

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.

FREQUENTLY ASKED QUESTIONS

SurrealDB vs. MongoDB

GET STARTED

Migrate from MongoDB

The context layer for AI agents. Unify data. Unlock intelligence. Scale anywhere.

SamsungNVIDIAAppleVerizonTencent

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

SurrealDB

The context layer for AI agents.

Documents, graphs, vectors, time-series, and memory.
One transaction, one query, one deployment.

Explore with AI

Stay in the loop

Tutorials, AI agent recipes, and product updates, every two weeks.

Independently verified

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

Trust Centre

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom