---
title: "One database, every data model | SurrealDB"
description: "Documents, graphs, vectors, time-series, and relational data as native primitives in a single ACID transaction. No plugins, no bolt-ons, no frankenstack."
url: https://surrealdb.com/surrealdb
---

# One database, every data model

SurrealDB is one multi-model database for documents, graphs, vectors, time-series, and relational data - native primitives in a single ACID transaction. No plugins, no bolt-ons, no frankenstack.

[Get started](https://studio.surrealdb.com/current/instances) [Read the docs](https://surrealdb.com/docs)

1. ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
2. ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
3. ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
4. ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
5. ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
6. ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
7. ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
8. ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
9. ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
10. ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
11. ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
12. ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)
13. ![Verizon](https://surrealdb.com/assets/static/verizon.BI7CajdX.svg)
14. ![Liberty Mutual](https://surrealdb.com/assets/static/liberty-mutual.B7qOU1pd.svg)
15. ![Walmart](https://surrealdb.com/assets/static/walmart.BjDg_Sr8.svg)
16. ![Carrier](https://surrealdb.com/assets/static/carrier.D21gC6NX.svg)
17. ![Saks Fifth Avenue](https://surrealdb.com/assets/static/saks-fifth-avenue.COIDpLSb.svg)
18. ![San Francisco Compute Company](https://surrealdb.com/assets/static/sfcc.B7jlImq4.svg)
19. ![Shield AI](https://surrealdb.com/assets/static/shield-ai.pINZ0KJr.svg)
20. ![Wix](https://surrealdb.com/assets/static/wix.DvHhmoBi.svg)

01 |MULTI-MODEL

## Six databases become one

Put an end to stitching databases together. SurrealDB unifies your entire data layer in a single multi-model engine - one query language, one transaction, one deployment.

Before - Multiple databases

Client

0ms

Your application

6 SDKs · 6 drivers · 6 connection pools

Vector
database

Proprietary API

Full-text search
database

Search DSL

Time-series
database

InfluxQL / Flux

Document
database

SQL / MQL

Graph
database

Cypher / Gremlin

Relational
database

SQL

Eventual consistency only

After - SurrealDB

Client

0ms

Your application

1 SDK · 1 driver · 1 connection pool

![SurrealDB](https://surrealdb.com/assets/static/surrealdb-icon.C3ORaDk9.svg)

Database

SurrealQL

Vectors

Full-text

Time-series

Documents

Graphs

Relational

Single ACID transactionStrong consistency

### [Native multi-model engine](https://surrealdb.com/docs/learn/data-models)

Documents, graphs, vectors, full-text search, time-series, and relational data - fully unified in one database and query language. No plugins or bolt-ons.

Document

Graph

Vector

Full-text

Time-series

Relational

SurrealQL

Explore data models

### [AI data layer](https://surrealdb.com/use-cases/ai-agents)

Built for context, memory, search, and retrieval - combining vectors, graphs, full-text search, and relational joins in one engine.

"find similar orders"

Vector

Full-text

Graph

Ranked context

Explore AI use cases

### [Deploy anywhere, scale horizontally](https://surrealdb.com/cloud)

The same API runs across in-memory, embedded, and edge deployments to self-hosted or fully managed cloud.

One API

RUNS ANYWHERE

In-memory

Embedded

Edge

Self-hosted

Cloud

Explore deployment options

### [Real-time and event-driven](https://surrealdb.com/docs/learn/querying/real-time/real-time-best-practices)

Built-in real-time subscriptions, event triggers, and streaming updates to power reactive, real-time experiences.

LIVE SELECT * FROM order

STREAMING UPDATES

CREATE

order:a1f

UPDATE

order:b7c

CREATE

order:d3e

Explore real-time features

### [Enterprise security and compliance](https://surrealdb.com/docs/learn/security/authentication/summary)

RBAC, record-level permissions, JWT auth, multi-tenant isolation, and SOC 2 / ISO 27001 compliance built in.

Authentication

✓

JWT

✓

Record access

Authorization

✓

RBAC

✓

Record-level permissions

Isolation

✓

Namespaces

✓

Multi-tenant

Compliance

✓

SOC 2 Type 2

✓

ISO 27001

Explore security features

### [Developer tools](https://surrealdb.com/studio)

SurrealDB Studio visual IDE, WebAssembly plugins, and SurrealQL - the best of SQL, NoSQL, and graph querying in one syntax.

SELECT ->purchased->product

FROM user LIMIT 10;

ONE SYNTAX · SQL · NOSQL · GRAPH

Studio IDE

SurrealQL

WASM

Explore developer tools

### [MCP server](https://surrealdb.com/mcp)

Connect AI tools directly to SurrealDB through the Model Context Protocol. Queries, schema exploration, graph traversal, and vector search as MCP tool calls.

Find orders like this one

MCP TOOL CALLS

query

schema

graph

vector

SurrealDB

Explore MCP integration

### [High-performance, reliable core](https://surrealdb.com/surrealdb/features)

Built in Rust with full ACID guarantees. Memory-safe, thread-safe, and crash-resilient by design.

✓

ACID transactions

✓

Memory-safe

✓

Thread-safe

✓

Crash-resilient

Engine

Rust

Storage

Pluggable

Status

Stable

Explore performance

[See all features](https://surrealdb.com/surrealdb/features)

02 |SURREALQL

## One query. Every model.

Graph traversals, vector search, transactions, and access control in one expressive language. Explore real-world query patterns across search, graphs, agents, and more.

Multi-model query

ACID transactions

Built-in auth

Hybrid RAG

Graph RAG

Context expansion

Knowledge graphs

Agent Memory

Conversational memory

Live queries

Recommendations

Geospatial queries

Event-driven automation

### Multi-model query

Graph, vector, and temporal data in one round trip

```
-- Combine graph traversal, vector similarity, and temporal-- filtering into a single round trip. No ORMs, no joins,-- no glue code between datastores.LET $vec = fn::embed("running shoes");SELECT    ->purchased->product AS history,    ->reviewed->product[WHERE        vector::similarity::cosine(            embedding, $vec        ) > 0.8    ] AS relevant,    ->prefs[WHERE valid_at <= time::now()] AS prefsFROM ONLY $user;
```

03 |HOW SURREALDB COMPARES

## Every other agent stack is a frankenstack

Document store, graph database, vector database, cache, message broker, memory middleware - glued together and prayed over. SurrealDB replaces all of it.

### [vs. Postgres](https://surrealdb.com/comparison/postgres)

Postgres bolts on vectors with pgvector and graphs with recursive CTEs. SurrealDB makes every model native - no extensions, no workarounds.

Compare with Postgres

### [vs. MongoDB](https://surrealdb.com/comparison/mongodb)

MongoDB is a document store. Graph traversal, vector search, and temporal queries require separate systems. SurrealDB unifies them.

Compare with MongoDB

### [vs. Neo4j](https://surrealdb.com/comparison/neo4j)

Neo4j is a graph database. Documents, vectors, and time-series require separate infrastructure. SurrealDB does it all in one engine.

Compare with Neo4j

### [vs. Elasticsearch](https://surrealdb.com/comparison/elasticsearch)

Elasticsearch is a search cluster your data must be synced into. SurrealDB builds full-text and vector search into the database itself.

Compare with Elasticsearch

### [vs. Vector databases](https://surrealdb.com/why/vs-vector-databases)

Pinecone, Chroma, and Weaviate store embeddings. SurrealDB stores embeddings alongside their entities, relationships, and temporal context.

Compare with vector databases

### [vs. Memory middleware](https://surrealdb.com/why/vs-memory-middleware)

Mem0 layers memory on top of fragmented databases. Agent Memory builds memory directly into SurrealDB - one transaction, no consistency gaps.

Compare with memory middleware

### [vs. Agent databases](https://surrealdb.com/why/vs-agent-databases)

HelixDB and HydraDB internalise a frankenstack. SurrealDB provides true multi-model unification with ACID across all data types.

Compare with agent databases

04 |HOW IT WORKS

## Multi-model query architecture

One query flows through documents, graphs, vectors, and time-series - resolved from a single transactional snapshot.

[Get started](https://surrealdb.com/docs/running/overview)

SurrealDB SDK

Postgres-compatible client

GraphQL client

![SurrealDB](https://surrealdb.com/assets/static/surrealdb-icon.C3ORaDk9.svg)

Database

RPC protocol

PostgreSQL wire protocol

GraphQL endpoint

SurrealQL parser

ANSI-SQL parser

GraphQL parser and schema generator

SurrealDB executor

Execution logical plan

Execution physical plan

Document processing

![Distributed storage](https://surrealdb.com/assets/static/surrealds-icon.C6Eh8iX9.svg)

Key-value engine data storage and retrieval

05 |DEPLOY ANYWHERE

## Single binary, any device

In-memory, embedded, edge, WASM, or cloud - the same engine runs everywhere.

[Deploy now](https://surrealdb.com/cloud)

Agent or application

Python, C, C++, Rust, Java, or JavaScript runtime

In-process native communication

![SurrealDB](https://surrealdb.com/assets/static/surrealdb-icon.C3ORaDk9.svg)

Database

Query engine

Storage engine(Local disk or block storage)

Periodic storage data compaction
and compacted data storage

![Distributed storage](https://surrealdb.com/assets/static/surrealds-icon.C6Eh8iX9.svg)

Local disk

06 |TRY IT LIVE

## Run SurrealQL without leaving.

A real SurrealDB instance, pre-loaded with the Surreal Deal sample store. Edit the query and hit run - no signup, no install.

[Open in Studio](https://studio.surrealdb.com/)

07 |BENCHMARKS

## Benchmarked in the open

SurrealDB tested against the leading key-value, embedded, relational, document, and graph databases - the same workload, the same harness, the same hardware.

### [Key-value](https://surrealdb.com/surrealdb/benchmarks#key-value)

Redis-class throughput with full database semantics.

View results

### [Embedded](https://surrealdb.com/surrealdb/benchmarks#embedded)

Embedded performance with full SurrealQL on the same disk format.

View results

### [Relational](https://surrealdb.com/surrealdb/benchmarks#relational)

SQL workloads against Postgres and MySQL.

View results

### [Document](https://surrealdb.com/surrealdb/benchmarks#document)

Document workloads against MongoDB and ArangoDB.

View results

### [Graph](https://surrealdb.com/surrealdb/benchmarks#graph)

Graph workloads against Neo4j and ArangoDB.

View results

[View all benchmarks](https://surrealdb.com/surrealdb/benchmarks)

ADD AGENT MEMORY

## Give your agents memory with agent memory

Agent Memory is the memory and knowledge layer for AI agents, sold on its own and built on SurrealDB. Because memory lives in the same engine as your data, every fact, embedding and relationship shares one ACID transaction and one permission model - no separate memory store, nothing to sync.

[Explore Agent Memory](https://surrealdb.com/agent-memory)

![Overlapping facets representing SurrealDB's multi-model features](https://surrealdb.com/assets/static/surrealdb-explore-features.dtFW54dP.avif)

### [Features](https://surrealdb.com/surrealdb/features)

Explore the full set of capabilities built into SurrealDB - from multi-model querying and vector search to real-time subscriptions and record-level permissions.

Explore features

![Layered roadmap timeline of upcoming, in-development, and shipped releases](https://surrealdb.com/assets/static/surrealdb-explore-roadmap.XdP3FxgL.avif)

### [Roadmap](https://surrealdb.com/roadmap)

See what's planned, what's in development, and what's already shipped. Follow the evolution of SurrealDB from database to full platform.

Explore roadmap

![Concentric rings symbolising successive SurrealDB release iterations](https://surrealdb.com/assets/static/surrealdb-explore-releases.CtXiVQm_.avif)

### [Releases](https://surrealdb.com/releases)

Browse every release with detailed changelogs, new features, performance improvements, and bug fixes across all SurrealDB versions.

Explore releases

GET STARTED

## Start building with SurrealDB

The only database where a graph edge is a full document, a vector embedding lives in the same ACID transaction, and context is atomic.

![Samsung](https://surrealdb.com/assets/static/4c58b81e7b3c9466.C_Hv0eml.svg)![NVIDIA](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)![Apple](https://surrealdb.com/assets/static/f7dc2519e0d212bc.Cn8MYAK7.svg)![Verizon](https://surrealdb.com/assets/static/18b99996c689000f.B5PQ-nI9.svg)![Tencent](https://surrealdb.com/assets/static/401d8346058682c8.DqM87mst.svg)

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

[Get started](https://studio.surrealdb.com/current/instances) [Read the docs](https://surrealdb.com/docs)

```json
{"@context":"https://schema.org","@type":"Organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the unified data layer for AI. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","hasCertification":[{"@type":"Certification","name":"SOC 2 Type 2"},{"@type":"Certification","name":"GDPR"},{"@type":"Certification","name":"Cyber Essentials Plus"},{"@type":"Certification","name":"ISO 27001"}],"owns":[{"@type":"SoftwareApplication","name":"SurrealDB","url":"https://surrealdb.com/surrealdb"},{"@type":"SoftwareApplication","name":"Agent Memory","url":"https://surrealdb.com/agent-memory"}],"knowsAbout":["multi-model databases","document databases","graph databases","vector search","time-series databases","SurrealQL","Agent Memory","real-time databases","embedded databases","context layer","graph ontology","distributed database","knowledge graphs","distributed transaction protocols","highly-scalable databases"],"sameAs":["https://www.wikidata.org/wiki/Q124316308","https://github.com/surrealdb/surrealdb","https://twitter.com/surrealdb","https://www.youtube.com/@surrealdb","https://www.linkedin.com/company/surrealdb","https://discord.gg/surrealdb","https://www.reddit.com/r/surrealdb","https://www.instagram.com/surrealdb","https://medium.com/surrealdb","https://dev.to/surrealdb"]}
```

```json
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"SurrealDB","applicationCategory":"DeveloperApplication","operatingSystem":"Linux, macOS, Windows","url":"https://surrealdb.com/surrealdb","description":"The unified data layer for AI. A multi-model database for documents, graphs, vectors, and time-series.","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"}}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"SurrealDB","item":"https://surrealdb.com/surrealdb"}]}
```
