ONE RELEASE, THREE FOUNDATIONS
SurrealDB 4, SurrealDB Earth and SurrealDS. A database that speaks Postgres and MySQL, starts on its first query on Earth, confirms each write in two zones by default, and scales on demand.
SurrealDB 4
Indexed queries are projected at 22x faster than in 3.x. Full-table scans are 2.3x faster, and creates, reads, updates and deletes 42% faster, as measured with crud-bench on the same hardware.
22x faster
SurrealDB Earth
Serverless SurrealDB on Cloudflare, with thousands of isolated instances. Earth handles 10+ billion peak rows per second, fully transactional.
10+ billion
SurrealDS
Distributed storage on object storage, in SurrealDB Cloud multi-node clusters and Enterprise Edition. With the default two-zone policy, writes are acknowledged only after being stored on disks in both zones.
Two zones
RELIABILITY
Compute is replaceable. Data stays durable. SurrealDS copies each write across failure domains before confirming it, and a new node recovers from the surviving copy. SurrealDB 4 adds 240+ fixes over 3.x.
240+ fixes
90+ bug reports
4,500+ test files
Two zones
PERFORMANCE
Faster at every size. A rebuilt query core in SurrealDB 4, with faster storage engines, indexes and graph traversals.
7.4x
27 ms to 1.1 ms
24.5 to 9.4 min
COMPATIBILITY
Speaks Postgres and MySQL. PostgreSQL and MySQL clients, and code written for the MongoDB driver, reach the same records as SurrealQL, through one query planner.
PostgreSQL
SELECT p.name,
pr.name AS product
FROM person p
JOIN bought b ON b.in = p.id
JOIN product pr ON pr.id = b.out
WHERE p.age > 30;
MySQL
SELECT pr.name,
COUNT(*) AS buyers
FROM bought b
JOIN product pr ON pr.id = b.out
GROUP BY pr.name
ORDER BY buyers DESC;
MongoDB
import { MongoClient }
from "mql.js";
const client =
new MongoClient(SURREALDB_URL);
const people = client
.db("shop")
.collection("person");
await people
.find({ age: { $gt: 30 } })
.toArray();
SCALE
From zero to massive. Serverless databases that scale to zero when idle, thousands of isolated ones across Cloudflare, and clusters over very large datasets, all on SurrealDB.
Scales to zero when idle
Thousands of instances
One query, many Workers
Compute apart from storage
WHAT IT UNLOCKS
Data infrastructure for AI agents at any scale. One agent, one database. Thousands of agents, thousands of databases. Large platforms, shared clusters. The data model stays the same at every step.
One agent
Thousands of agents
Large platforms
START ON SURREALDB 4
Run it today, wherever you build. Embedded in an application, on a laptop, in the browser, as a server or in SurrealDB Cloud, and as an upgrade from 3.x with every 3.x record still readable.
Your questions,answered
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

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

Cloud
Dedicated clusters by region, or serverless on SurrealDB Earth.

Studio
Query, explore and design the schema from the browser.

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

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.
VP of Engineering, Later
GET STARTED