Skip to content
LAUNCH WEEK

Stop choosing. SurrealDB launch week, 12-16 October

See what's coming

SurrealDB 0.3

Patches. 1 patch release on the 0.3 line.
Latest. 0.3.0, released Dec 14, 2021.
Stable. Ready for production, with every patch's notes below.

Features: Enable query and session parameters to be defined on a JSON-RPC connection Ensure subqueries can access encoding parent query and grand-parent…

Newer release line available: 1.0 →

Released Dec 14, 2021

0.3.0

Features:

  • Enable query and session parameters to be defined on a JSON-RPC connection

  • Ensure subqueries can access encoding parent query and grand-parent queries

  • Add diff-match-patch functionality when updating document records

  • Separate authentication levels for Namespace and Database specific access

  • Authentication scope definition and setup, with user-defined authentication logic for each scope

Aggregate views let you pre-compute analytics queries as data is written to SurrealDB. Similarly to an index, a table view lets you select, aggregate, group, and order data, with support for moving averages, time-based windowing, and attribute-based counting. Pre-defined aggregate views are efficient and performant, with only a single record modification being made for every write.

-- Drop all writes to the reading table. We don't need every reading.
DEFINE TABLE reading DROP;

-- Define a table as a view which aggregates data from the reading table
DEFINE TABLE temperatures_by_month AS
  SELECT
    count() AS total,
    time::month(recorded_at) AS month,
    math::mean(temperature) AS average_temp
  FROM reading
  GROUP BY city
;

-- Add a new temperature reading with some basic attributes
CREATE reading SET
  temperature = 27.4,
  recorded_at = time::now(),
  city = 'London',
  location = (-0.118092, 51.509865)
;

Upgrade or install

Get SurrealDB v0.3.0

Pick how you want to install or upgrade. SurrealDB Studio can update connected instances in place, or choose a platform below to copy a CLI command for v0.3.0.

You can upgrade your SurrealDB Cloud instance to v0.3.0 effortlessly through SurrealDB Studio.

  1. Select your organisation and instance
  2. On the dashboard, click on the "Upgrade" button
  3. Your instance will be updated and restarted automatically

GET STARTED

Start building with SurrealDB. One data layer for AI, from object storage to agent memory.

ISO 27001
AICPA SOC 2 Type 2
Cyber Essentials
GDPR
Cyber Essentials Plus
SurrealDB

The context and memory layer for AI agents

Database. Graphs, vectors, documents and relational data in one engine, in a single ACID transaction.
Agent Memory. Connects and retrieves context wherever your data lives, every fact carrying its source.
Cloud. Fully managed, in the cloud provider and region you choose.

Explore with AI

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