May 2026 Summaries
7 posts from SurrealDB
Filter
Month:
Year:
Post Summaries
Back to Blog
SurrealDB 3.x demonstrates significant improvements over its predecessors, showcasing enhanced performance in CRUD throughput, batch operations, and indexed and non-indexed full-table scans, with particular advancements seen in its query planner and storage engine. In benchmark comparisons against databases like PostgreSQL, MongoDB, and Neo4j, SurrealDB consistently outperforms in write operations and complex queries, while still maintaining competitive read speeds, illustrating its capabilities as a multi-model, transactional database. SurrealDB's design uniquely accommodates diverse data models such as relational, document, graph, vector, and full-text search within a single query language, SurrealQL, making it ideal for AI agents that require multi-model memory in a transactionally consistent store. Future developments aim to close the performance gaps still present in large batch operations and indexed predicate filtering, while planned benchmarks will further explore SurrealDB's performance in distributed settings and additional capabilities like vector search and full-text retrieval.
May 29, 2026
2,038 words in the original blog post.
SurrealDB 3.1, the first minor release in the 3.x series, introduces several enhancements, focusing on stability, security, and new features like the DiskANN approximate-nearest-neighbour index, which is suited for larger-than-memory vector workloads. The release also upgrades the GraphQL interface, aligning with Apollo conventions and adding features like cursor pagination and multi-model filtering, enhancing compatibility with modern GraphQL clients and supporting AI-native and analytics-heavy workloads. A significant improvement in in-memory performance is achieved through optimistic lock coupling, allowing lock-free access for readers. The update addresses various bug fixes and stability improvements from the 3.0 line, alongside security hardening through increased investment in LLM-assisted security review. Enterprise customers benefit from new operational tools like structured audit logs and a slow-query pipeline. SurrealDB 3.1 also marks a shift to a private development workflow, synchronizing public updates after releases to enhance security response times while maintaining community transparency through the public repository for issues and discussions.
May 27, 2026
1,264 words in the original blog post.
The text explores the complexity of the sentence "Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo," using SurrealDB to demonstrate the interactions between buffaloes from Buffalo and those from other places. It explains the linguistic intricacies of the word "buffalo," which can serve as a noun, a verb, and be pluralized, creating a grammatically correct yet perplexing sentence. The text illustrates this concept through SurrealQL by creating a database of buffaloes, simulating interactions where buffaloes can "buffalo" other buffaloes. It details the process of setting up these interactions using CREATE statements, random selection, and relationships within the database to show which buffaloes are buffaloing others and which are being buffaloed. The text further explores a scenario where buffaloes from Buffalo retaliate against other buffaloes from Buffalo, establishing a rule-based interaction model. Visualization using Surrealist's graph feature provides a clearer understanding of these complex interactions, revealing a denser network of connections among buffaloes from Buffalo compared to those from elsewhere.
May 22, 2026
1,114 words in the original blog post.
Agentic retrieval for structured data using text-to-SurrealQL provides a solution for AI agents to effectively manage and query structured data within databases by generating precise SurrealQL queries. This method improves upon traditional retrieval augmented generation (RAG) pipelines, which focus on unstructured data, by allowing agents to handle complex data relationships and aggregations in a single query using SurrealQL, SurrealDB's multi-model query language. By offering a more sophisticated way to handle structured data, agents can answer questions accurately, with the additional benefit of auditability and secured data access through built-in permissions. This approach empowers AI agents to deliver precise, traceable, and secure answers from structured data, making it a significant advancement over traditional vector-based retrieval methods.
May 19, 2026
1,756 words in the original blog post.
Choosing the right chunking strategy for document processing in retrieval-augmented generation (RAG) pipelines or semantic search systems is crucial, as the wrong choice can degrade retrieval quality. Various strategies, such as fixed-size, recursive/sentence-aware, semantic, document-structure, and sliding window chunking, each offer distinct tradeoffs and are suited to different types of documents and retrieval precision needs. Fixed-size chunking is simple and fast but may split sentences awkwardly, making it suitable for prototyping. Recursive chunking preserves sentence integrity and is good for general prose, while semantic chunking aligns with topic shifts, offering high precision for complex documents but at a higher computational cost. Document-structure chunking uses inherent document markers like headers, making it ideal for structured documents, while sliding window chunking ensures continuity for conversational text but increases redundancy. The decision framework for selecting a strategy considers document type, retrieval precision requirements, and infrastructure constraints, with no single strategy universally best, emphasizing empirical evaluation with actual queries and documents.
May 12, 2026
1,406 words in the original blog post.
In the context of building a Retrieval-Augmented Generation (RAG) pipeline or any AI application utilizing a vector store, determining the optimal chunk size is crucial for balancing retrieval precision and context quality. Chunking refers to dividing large text into smaller, meaningful segments, with chunk size typically measured in tokens. Smaller chunks enhance retrieval precision by focusing on specific ideas, while larger chunks increase recall but may introduce irrelevant information into the LLM's context window. The choice of chunk size is influenced by factors such as the embedding model's token limit, the LLM's context window, document type, query style, and retrieval strategy. Recommended starting points vary by use case, with general-purpose RAG systems benefiting from chunks of 512–1,024 tokens with overlap, whereas short-form content and technical documents require different sizes to maintain semantic coherence. Testing and tuning chunk sizes as hyperparameters can optimize retrieval quality, taking into account the specific characteristics of the documents, queries, and the retrieval architecture used. SurrealDB's vector search capabilities, combined with graph and relational features, provide a comprehensive solution for building robust RAG pipelines.
May 08, 2026
1,174 words in the original blog post.
SurrealKit, a CLI tool developed by the SurrealDB team, streamlines the local development workflow by managing schema migrations through .surql files, ensuring that the database remains in sync with code changes. It offers two main modes: Sync, for fast and declarative updates in local environments, and Rollout, for controlled migrations in shared or production databases. The tool integrates with the Rust package manager Cargo and uses environment variables for database connections. Users can easily initiate a development environment, track schema changes, and apply them using commands like `surrealkit sync` and `surrealkit sync --watch`. For shared environments, SurrealKit provides a structured rollout process that includes planning, executing, and, if necessary, rolling back migrations. The tool also supports seeding databases with test data and features a declarative testing framework for validating SQL assertions, permission rules, and API endpoints, making it suitable for CI/CD integration. Overall, SurrealKit enhances productivity by automating schema management and ensuring consistency across development and production environments.
May 07, 2026
1,077 words in the original blog post.