June 2026 Summaries
12 posts from SurrealDB
Filter
Month:
Year:
Post Summaries
Back to Blog
SurrealDB Cloud has introduced a new tier called Scale, designed for high availability and scalability, particularly for production traffic and uptime commitments. This tier offers a multi-node cluster architecture that ensures database availability and consistency under real-world conditions, with features such as fault-tolerant clusters, multiple availability-zone deployment, and horizontal scaling capabilities. Built on SurrealDS, a distributed storage engine, Scale separates compute and storage, allowing independent scaling and reducing operational overhead by embedding consensus directly in SurrealDB nodes. The architecture eliminates single points of failure and enables multi-write nodes, lowering latency and minimizing network dependencies. Future enhancements include object-storage-backed persistence, cross-region replication, instant recovery, and instant branching, which aim to further optimize cost, capacity, and recovery time.
Jun 30, 2026
592 words in the original blog post.
SurrealDB introduces an innovative approach to semantic search by integrating embedding generation directly within its SurrealQL language, eliminating the need for separate vectorization services or multiple network hops. By defining a custom function, fn::embed, users can embed text into vectors directly within the database, which streamlines the "text in, ranked results out" workflow by keeping the embedding logic centralized in SurrealQL. This method simplifies error handling, reduces latency, and enhances efficiency, as the embedding, vector indexing, and graph traversal occur server-side, allowing for seamless semantic search operations. The text emphasizes best practices such as managing API keys securely as database parameters and optimizing performance through capabilities like HNSW indexing and cosine distance metrics. SurrealDB's approach facilitates embedding at both write and query times, enabling enriched and ranked search results without requiring external microservices or additional coding layers, thus offering a robust solution for implementing efficient and scalable semantic search on user data.
Jun 26, 2026
1,087 words in the original blog post.
In the text, Martin Schaer discusses the advantages of using a graph-based model over traditional flat tables for incident response in cybersecurity, particularly when utilizing SurrealDB. Traditional models, such as spreadsheets or flat CMDB tables, are limited to answering basic asset inventory questions and fall short during incidents where understanding the risk and reachability between assets is crucial. By employing a graph model, relationships between nodes (assets, accounts, vulnerabilities) can be directly mapped, enabling efficient queries for determining blast radius, lateral movement, and crown-jewel exposure during an incident. SurrealDB enhances this model by supporting graph traversals and time-travel queries through its VERSION clause, allowing teams to reconstruct incidents accurately by querying historical states of the network. This approach transforms complex recursive joins into straightforward traversals, making critical incident queries more accessible and effective in real-time scenarios. The text encourages users to implement this model by setting up SurrealDB, seeding it with data, and leveraging its capabilities to maintain a live, queryable, and time-traveling security graph for proactive and reactive incident management.
Jun 25, 2026
1,608 words in the original blog post.
The text discusses how activity-tracking and social-fitness apps can benefit from using a graph-based model to manage their social features, such as followers, kudos, comments, and segment leaderboards. By employing SurrealDB, the model allows athletes, activities, segments, and clubs to be represented as nodes, with relationships like follows, recorded, kudos, comments, efforts, and memberships as edges. This structure simplifies complex queries such as friend-of-friend suggestions, network-scoped leaderboards, and engagement metrics, which would otherwise require cumbersome join tables and recursive common table expressions (CTEs) in relational databases. Key advantages include the ability to perform efficient two-hop traversals, maintain unique relationships, and directly associate data with relationships, such as comment text or kudos timestamps. The article provides a practical guide to implementing this model, including schema definitions and sample queries, offering a scalable and unified approach to managing social interactions within fitness apps.
Jun 23, 2026
2,318 words in the original blog post.
SurrealDB combined with CocoIndex offers an innovative solution for maintaining a living knowledge layer for AI agents by integrating document storage, knowledge graphs, and vector indexing into one unified, multi-model database. This approach eliminates the need for separate databases and complex synchronization processes, allowing for a seamless, declarative pipeline that updates dynamically without the need for full re-embedding or manual data migration. By employing a Rust core for high-concurrency execution and a Python-defined logic, the system efficiently reconciles target states, ensuring that data remains fresh and interconnected through hybrid retrieval methods that merge vector similarity and graph traversal in a single query. The SurrealDB connector in CocoIndex v1 simplifies the creation of AI applications with durable agent memory and hybrid retrieval-augmented generation (RAG) capabilities, providing a streamlined, scalable solution for building complex data-driven applications.
Jun 22, 2026
760 words in the original blog post.
SurrealDB and Lovable together offer a powerful framework for building web applications directly on existing data by leveraging the Model Context Protocol (MCP) to integrate AI-driven development. SurrealDB acts as a versatile database engine supporting documents, graphs, vectors, and SQL, while Lovable turns prompts into functional web apps by connecting to SurrealDB's MCP server. This integration allows teams to use their trusted data infrastructure without creating new backends, as Lovable reads and writes data through a secure, typed interface that respects database permissions. The guide outlines a hands-on approach to setting up SurrealDB 3.1 with the MCP server enabled, ensuring accessibility over the internet through SurrealDB Cloud or local tunneling, and connecting it with Lovable to generate user interfaces based on real-time data. By providing detailed steps for installation, schema creation, and MCP server configuration, it emphasizes the importance of security and observability, offering insights into how Lovable can build applications that utilize SurrealDB's capabilities for complex data interactions. This seamless workflow enables developers to create scalable applications with a strong focus on data integrity and operational efficiency, transforming AI-driven coding into a robust production-ready process.
Jun 22, 2026
2,930 words in the original blog post.
Deterministic simulation testing (DST) at SurrealDB is explored in a blog post by Senior Software Engineer Farhan Khan, highlighting its dual focus on extensive coverage and reproducibility. DST aims to identify and resolve bugs pre-production by ensuring tests consistently yield the same outputs, regardless of complexity, by utilizing techniques like using a consistent random seed. The post delves into the integration of DST with Rust's tokio async runtime, showcasing built-in testing tools for simulation control, and further discusses DST library architecture involving complex testing scenarios with uniform clocks and network models. The practical application of DST is illustrated through its use in testing SurrealDB's distributed key-value store, employing scenarios and fault profiles to simulate and test various conditions. The blog post offers interactive, modifiable scenarios and invites readers to try out SurrealDB in a sandbox environment, with options to create a free cloud instance for further exploration.
Jun 19, 2026
653 words in the original blog post.
Surrealist 3.9 introduces a comprehensive design overhaul, enhancing the user experience with a streamlined interface that includes a unified namespace and database selection menu, improved search functionality, and redesigned connection settings. The release also debuts a new datasets browser and data manager, simplifying the management of bulk data and facilitating interaction with official SurrealDB datasets for learning and experimentation. Enhancements to the record inspector offer deeper insights into data with new features like References and Live tabs, alongside an expanded actions menu for better control over data interactions. These updates aim to make Surrealist more intuitive and efficient for users managing complex data environments.
Jun 16, 2026
752 words in the original blog post.
The tutorial discusses how SurrealDB's SurrealKit provides a robust framework for developing multi-tenant applications by offering a set of templates that streamline the creation of organizational structures, roles, and permissions. It highlights the importance of a foundational setup where users belong to organizations, which have roles with specific permissions, managed through SurrealDB's schema management tools. The Organizations template, along with optional features like Teams, Units, and Subsidiaries, allows developers to scaffold a project with predefined building blocks, thus avoiding common pitfalls associated with building these features from scratch. By using a declarative approach for permissions management, the tutorial emphasizes the adaptability and security of keeping authorization logic at the database level. The system is designed to be extensible and customizable, with options for adding new features or modifying existing ones, ensuring a secure and efficient baseline for SaaS applications that can be expanded as needed.
Jun 12, 2026
1,982 words in the original blog post.
Fuzz testing was implemented in the lead-up to SurrealDB 3.0 to enhance stability and performance by discovering bugs through randomized input before users encounter them. This method, which complements unit and integration tests, aims to identify edge cases by feeding semi-random data into the code to observe failure modes. While fuzz testing has been around, its practicality increased after Google's OSS-Fuzz launch in 2016, a response to the Heartbleed vulnerability in OpenSSL. SurrealDB incorporated fuzz testing due to significant structural changes, utilizing tools in Rust to run fuzz tests locally and in CI. This approach highlighted defects in SurrealQL formatting, parser edge cases, and executor issues, proving effective at catching issues that standard tests might miss. Although it hasn't replaced existing language tests or integration suites, fuzz testing has contributed to identifying and fixing a range of parser and formatting defects before the 3.0 release, with continuous coverage provided by OSS-Fuzz post-merge.
Jun 11, 2026
1,847 words in the original blog post.
SurrealDB has been launched on the Nebius AI Cloud Marketplace, marking a significant step in enhancing accessibility and scalability for developers and AI teams. This partnership with Nebius, a fast-growing AI cloud platform equipped with advanced GPU and networking infrastructure, provides a robust environment for training, tuning, and deploying AI models efficiently. SurrealDB offers a comprehensive database solution combining document, graph, and relational capabilities, ideal for real-time systems and AI workloads. It simplifies technology stacks, reduces operational complexity, and accelerates product development by enabling semantic and context layers powered by knowledge graphs. This collaboration aims to streamline the adoption of SurrealDB on Nebius, empowering users to innovate rapidly within a unified data and compute ecosystem.
Jun 09, 2026
314 words in the original blog post.
The text explores the modern data architecture necessary for AI systems, focusing on three critical components: context layers, semantic layers, and knowledge graphs. These layers serve different functions within data systems, with context layers dynamically retrieving relevant data for AI models, semantic layers translating raw data into meaningful business concepts, and knowledge graphs storing and managing data relationships. The text emphasizes the challenges and inefficiencies of traditional fragmented data stacks, which often require multiple systems, leading to increased complexity, latency, and costs. SurrealDB is presented as a solution with its multi-model architecture that integrates these layers seamlessly, allowing for efficient data retrieval and management in AI applications. It supports diverse use cases like AI agent memory, enterprise knowledge graphs, and advanced RAG pipelines, offering a streamlined alternative to specialized tools, although it acknowledges trade-offs in terms of ecosystem maturity and specific workload needs.
Jun 05, 2026
2,933 words in the original blog post.