Skip to content

Stop choosing. SurrealDB launch week, 12-16 October

See what's coming

Release v1.0.0-beta.7: complex record IDs and record ranges

Release

Aug 29, 20221 min read

Tobie Morgan Hitchcock

Tobie Morgan Hitchcock

Show all postsRelease v1.0.0-beta.7: complex record IDs and record ranges

SurrealDB's 1.0-beta.7 release is now live, with a large number of improvements to the SurrealQL querying language in particular.

  • Add support for Objects and Arrays as Record IDs

  • Add support for querying records using Record ID ranges

  • Add SQL session functions for retrieving session variables

  • Make --ns and --db arguments optional in command-line REPL

  • Return an error when the specified datastore is not able to be initiated

  • Enable root authentication for client libraries using WebSocket protocol

  • Ensure math::sum() returns a number instead of a NONE value, when called on a non-array value

  • Add ACID compliant, persistant, on-disk storage implementation, with multiple concurrent writers using RocksDB

Our newsletter
Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks

SurrealDB now supports the ability to define record IDs using arrays. These values sort correctly, and can be used to store values or recordings in a timeseries context.

// Create a record with a complex ID using an array
CREATE temperature:['London', '2022-08-29T08:03:39'] SET
    location = 'London',
    date = '2022-08-29T08:03:39',
    temperature = 23.7
;

// Select a specific record using a complex ID
SELECT * FROM temperature:['London', '2022-08-29T08:03:39'];

SurrealDB now supports the ability to query a range of records, using the record ID. The record ID ranges, retrieve records using the natural sorting order of the record IDs. With the addition of complex record IDs above, this can be used to query a range of records in a timeseries context.

// Select all person records with IDs between the given range
SELECT * FROM person:1..1000;
// Select all temperature records with IDs between the given range
SELECT * FROM temperature:['London', '2022-08-29T08:03:39']..['London', '2022-08-29T08:09:31'];

/releases

Related posts

Our newsletter

Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks

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