---
title: "Context at any scale | Whitepapers | SurrealDB"
description: "Agents fail at the foundation, not the model. The case for one multi-model engine that holds context, memory, and scale, from one agent to millions."
url: https://surrealdb.com/whitepapers/context-at-any-scale
---

# Context at any scale

The data foundation for agentic AI. Enter your email to read the paper.

In this paper

- Why the data foundation is the constraint on agents
- Atomic context: every data model in one transaction
- How one engine scales from embedded to object storage

- ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
- ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
- ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
- ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
- ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
- ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
- ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
- ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
- ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
- ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
- ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
- ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)

4 topics

AI agents, Multi-model, Agent Memory, Scale

Ready to read it?

[Get the whitepaper](https://surrealdb.com/whitepapers/context-at-any-scale#top)

## The data foundation for agentic AI

Agents fail at the foundation, not the model. This paper sets out the case for a single multi-model engine that holds context, memory, and the scale to run them, from one agent to millions, and the limits of that approach.

## Key takeaways

Why the data foundation, not the model, is the constraint on agents in production, and why bigger models and longer context windows have not moved it.

What an agent needs from data: a read-think-write loop, transactional state, relationships as first-class objects, and changes pushed rather than polled.

Atomic context: one engine where document, graph, vector, time-series and relational data share one transaction, one permission model and one audit trail.

The scale envelope, from an embedded library and SurrealKV on disk to SurrealDS on object storage and SurrealDB Earth, with one database per agent that scales to zero.

Agent Memory, PostgreSQL and MySQL compatibility, how other approaches compare, and the trade-offs and limitations of consolidating on one engine.

## What's inside

1. Executive summary
2. The 2026 reality: the foundation is the constraint
3. What an agent needs from data
4. Context, semantics, and knowledge
5. Why the fragmented stack falls short
6. The architectural argument: atomic context
7. From embedded to object storage: the scale envelope
8. Memory is the missing half: Agent Memory
9. Familiar SQL: PostgreSQL and MySQL compatibility
10. Other approaches
11. Trade-offs and limitations
12. What this enables, and where to start
13. Conclusion
14. Technical appendix: a minimal illustration

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"Whitepapers","item":"https://surrealdb.com/whitepapers"},{"@type":"ListItem","position":3,"name":"Context at any scale","item":"https://surrealdb.com/whitepapers/context-at-any-scale"}]}
```

```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 a database for every agent. It starts on its first query, scales to zero when idle, speaks PostgreSQL and MySQL, and remembers in one query.","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","AI agent database","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"]}
```
