---
title: "One database, every data model | SurrealDB"
description: "Documents, graphs, vectors, time-series, and relational data as native primitives in a single ACID transaction, with one query language across them all."
url: https://surrealdb.com/surrealdb
---

DATABASE

# One database, every data model

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

**Multi-model.** Documents, graphs, vectors, full-text search, time-series and relational data in one engine.

**SurrealQL.** One query language across every model - documents, graphs, vectors and relations in a single ACID transaction.

**Deploy anywhere.** In-memory, embedded, self-hosted, or fully managed on SurrealDB Cloud.

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)

## Six databases become one. One query language, one transaction, one deployment.

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

### [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.

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.

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.

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.

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.

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.

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.

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.

Explore performance

03 |HOW SURREALDB COMPARES

## How the stack compares

### [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.

### [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.

### [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.

### [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.

### [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.

### [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.

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

HelixDB and HydraDB bundle separate engines behind one API. SurrealDB is one engine, with ACID across every model.

## One engine, everywhere. One query across every model, from one transactional snapshot. In-memory, embedded, WASM or cloud.

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

### [One query across every model](https://surrealdb.com/docs/surrealql)

Documents, graphs, vectors, full-text, time-series and relations answer one SurrealQL statement.

Explore SurrealQL

### [One transactional snapshot](https://surrealdb.com/docs/surrealdb/introduction/concepts/transactions)

Every model reads and writes inside the same ACID transaction, so results agree with each other.

How transactions work

### [SurrealQL, SQL and GraphQL](https://surrealdb.com/docs/surrealdb/integration)

The SDKs, a GraphQL endpoint and a Postgres wire protocol (in development) all reach the same engine.

Explore the protocols

### [Embedded or in-memory](https://surrealdb.com/docs/surrealdb/embedding)

Run inside your process in Rust, Python, Node.js or Java, with the full query language on a local engine.

Embed SurrealDB

### [WASM in the browser](https://surrealdb.com/docs/sdk/javascript/engines/wasm)

The same database compiled to WebAssembly, querying local data on the client.

Run in the browser

### [Self-hosted or SurrealDB Cloud](https://surrealdb.com/cloud)

One binary from a laptop to a distributed cluster, with compute and storage scaled apart.

Deploy anywhere

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.

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

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

Redis-class throughput with full database semantics.

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

Embedded performance with full SurrealQL on the same disk format.

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

SQL workloads against Postgres and MySQL.

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

Document workloads against MongoDB and ArangoDB.

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

Graph workloads against Neo4j and ArangoDB.

THE PLATFORM

## Everything an application and its agents know. Five surfaces, one engine.

Database

Document, graph, vector, time-series and relational in one engine.

![Five data models as dotted tiles: documents, graph, vector, time-series and relational](https://surrealdb.com/assets/static/platform-database.DUdumYDz.avif)

Read more

[Database](https://surrealdb.com/surrealdb)

Agent Memory

What an agent learns, with its source and its time, in the same engine.

![A timeline of remembered facts, each with its source](https://surrealdb.com/assets/static/platform-agent-memory.Cvv8D5Wl.avif)

Read more

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

Cloud

Managed clusters in the regions you choose, scaled on demand.

![Clusters in three regions on a world map, each running or scaling](https://surrealdb.com/assets/static/platform-cloud.--QZnaVi.avif)

Read more

[Cloud](https://surrealdb.com/cloud)

Studio

Query, explore and design the schema from the browser.

![A SurrealQL query in Studio and the schema graph under it](https://surrealdb.com/assets/static/platform-studio.7ykBFNLq.avif)

Read more

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

MCP

Every model that speaks MCP reaches the database and the memory directly.

![Three models connected through MCP to the database and Agent Memory](https://surrealdb.com/assets/static/platform-mcp.D_oH0_wm.avif)

Read more

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

IN PRODUCTION

## Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

> SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.

*Justin Foley*

VP of Engineering, Later

GET STARTED

## Start building with SurrealDB. A graph edge that is a full document, a vector in the same ACID transaction, and context that is atomic.

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

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://surrealdb.com/#organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the context and memory layer for AI agents. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","legalName":"SurrealDB Ltd","identifier":{"@type":"PropertyValue","propertyID":"GB-COH","value":"13615201"},"address":{"@type":"PostalAddress","streetAddress":"3rd Floor, 1 Ashley Road","addressLocality":"Altrincham","addressRegion":"Cheshire","postalCode":"WA14 2DT","addressCountry":"GB"},"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"support@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"sales","email":"info@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"security","email":"security@surrealdb.com","url":"https://surrealdb.com/.well-known/security.txt","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"legal","email":"legal@surrealdb.com","url":"https://surrealdb.com/legal","availableLanguage":"English"}],"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 context and memory layer for AI agents. 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"}]}
```
