Turso Release Notes
13 release notes curated from 21 sources by the Releasebot Team. Last updated: Nov 28, 2026
- Nov 16, 2026
- Date parsed from source:Nov 16, 2026
- First seen by Releasebot:Nov 28, 2026
Turso Sync: Local-First SQLite with Push and Pull
Turso releases Sync, a local-first database sync feature that sends logical changes instead of pages. Apps can write offline and choose when to push and pull, with partial sync also available experimentally. Benchmarks show faster sync and less data for many write-heavy workloads, while conflicts use a last-push-wins model.
Turso Sync ships logical changes instead of pages, so writes stay local and you decide when to push and pull. Here is how it works, what the benchmarks show, and where last-push-wins fits. A local-first app is supposed to feel like this on a subway with no signal: you add a task, edit a note, check something off, and every tap responds instantly. There's no spinner and no "you're offline" banner. Twenty minutes later you walk up the stairs, the phone finds a network, and your changes land in the cloud. Your laptop picks them up the next time it opens the app. Nothing got lost. If you've tried to build that on SQLite, you probably know how rarely it ends up feeling that way. We know too, because our first attempt at sync when we forked SQLite (Embedded Replicas in libSQL), ran into the same problems you've likely hit. Turso Sync is our second attempt, built on Turso Database, our full, open source rewrite of SQLite in Rust. This post covers why the first approach struggled, how the new one works, what our benchmarks do and don't show, where the conflict model will and won't fit your data, and what to do if you're on Embedded Replicas today. Why SQLite sync kept breaking SQLite has a write-ahead log (WAL), and it's tempting to treat it as a replication stream. The problem is what's in it: WAL records physical pages, the fixed-size blocks SQLite stores data in. That means that it doesn't record that you inserted a row into tasks, it only records that page 412 now looks different. Replicating pages causes trouble in a few ways. A one-row change still ships a whole page, so small writes get expensive on the wire. Since you only see the resulting bytes, you can't tell what logically changed, which makes replaying or merging changes close to impossible. And keeping both sides applying pages in the same order gets fragile once checkpoints fold WAL pages back into the main database file. When the local and remote copies drift apart, the fix is to throw the local copy away and download everything again. Embedded Replicas hit all of these. As Glauber Costa put it in his sync benchmark post, "There is no good way to have a logical stream of changes in SQLite. So we built our replication protocol on physical pages." The practical fallout was that writes went to the remote database by default, with only reads served locally. You could turn that off, but sync then errored out more often. A local database that needs the network to write isn't very local. Sending changes instead of pages Embedded Replicas couldn't fix this from the outside. libSQL is a fork of SQLite, so it inherited SQLite's storage engine, and that engine only ever exposed pages. Getting a logical change stream meant changing the engine itself. That's one of the main reasons we started Turso Database, an open-source rewrite of SQLite in Rust that stays compatible with SQLite's file format and SQL dialect. Doing sync right was at the top of the list. The piece that matters for sync is built into that engine: Turso Database tracks every row-level change through Change Data Capture (CDC). When you push, the client sends logical statements describing what changed, not the pages those changes touched. A single-row insert costs roughly the size of that row on the wire. And because the changes are logical, they can be stitched together on the server: two unrelated writes to two different tables no longer collide just because they produced different physical pages. On Turso Cloud databases that run on the Turso Database engine, a synced database can also use concurrent writes (MVCC). Push and pull are separate on purpose Once you have a logical change stream, sync doesn't need to be one opaque call. Turso Sync splits it in two. push() sends local changes to the remote. pull() fetches remote changes and applies them locally, returning a boolean that tells you whether anything changed. You can also set a long-poll timeout so the server holds a pull until there's something new, which gets you close to real-time updates without hammering the server in a loop. Setting up a synced database in TypeScript looks like this: import { connect } from "@tursodatabase/sync"; const db = await connect({ path: "./my-app.db", url: process.env.TURSO_DATABASE_URL!, // turso://... from `turso db show <db> --url` authToken: process.env.TURSO_AUTH_TOKEN!, longPollTimeoutMs: 10_000, // optional: server waits for changes before replying to pull }); // Reads and writes always hit the local file await db.exec("INSERT INTO tasks (title, done) VALUES ('Buy milk', 0)"); // Send local changes when you're ready await db.push(); // Pick up changes made on other devices const changed = await db.pull(); Writes go to the local file and stay there until you call push(). If the device is offline, they sit safely on disk until it's back online. An app that only consumes cloud data can pull and never push. An app with bursty sessions can push once when the session ends instead of after every write. You decide where the sync boundaries are, and in our experience that decision is most of what makes a local-first app feel fast. For long-running apps, checkpoint() compacts the local WAL so disk usage stays bounded, and stats() reports sync activity such as bytes sent and received and the last push and pull times. For development, the the Turso Database CLI (tursodb) ships with a local sync server, so you can test the whole loop without a cloud account: tursodb --sync-server 0.0.0.0:8080 Starting without the whole database Turso Database is async all the way down, and that makes partial sync possible. Partial sync itself is still marked experimental, but the idea is simple: the client opens a database and starts answering queries before it has downloaded the full file. When a query touches a page that isn't local yet, the client fetches it on demand. Writes still apply locally first and are pushed as logical statements, so partial sync works with the same push and pull calls. You choose what's present at connect time. A prefix bootstrap downloads the first N bytes of the file, which gives you a small, predictable starting footprint. A query bootstrap runs a SQL query on the server and downloads only the pages it touches, such as one user's rows, which is a natural fit for per-user data. Fetching one 4 KiB page at a time would mean a lot of round-trips, so the client grabs a whole segment instead. The default segment is 128 KiB (about 32 pages at a 4 KiB page size), and you can tune it: larger for workloads that read clustered rows, smaller for sparse random access. There's also an optional prefetch mode that inspects freshly downloaded B-tree pages and recent access patterns, then pulls in the pages it expects the query to need next. Range scans and index walks stall less as a result. On a phone with a large database, that means the app is usable on first open instead of sitting on a progress bar. What the benchmarks show Before we started recommending Turso Sync over Embedded Replicas for every use case, we did what we usually do: benchmarked the two side by side and published the code and results on GitHub. We compared Embedded Replicas (@libsql/client 0.17.2) against Turso Sync (@tursodatabase/sync 0.5.3) from a Fly.io VM in us-east-1, the same region as the Turso Cloud database, so traffic crossed the public internet rather than staying inside AWS. Benchmark | Embedded Replicas | Turso Sync | Faster | Less data Read-your-writes, push once at the end (200 cycles) | 48.6 s / 2.7 MB | 0.16 s / 149 KB | 312x | 18.4x Read-your-writes, push after every write (200 cycles) | 43.7 s / 2.7 MB | 6.0 s / 1.1 MB | 7.3x | 2.5x Sequential updates (2,000 rows) | 97 s / 13.7 MB | 9.3 s / 945 KB | 10.5x | 14.8x Sequential inserts (3,000 rows) | 152 s / 34.6 MB | 17 s / 2.1 MB | 8.9x | 16.3x Pull remote changes (5,000 rows) | 0.72 s / 1.08 MB | 0.34 s / 1.05 MB | 2.1x | ~1x Batched inserts (3,000 rows, push every 500) | 16.5 s / 9.2 MB | 14.2 s / 2.2 MB | 1.2x | 4.3x The 312x speedup in the first row of the table is also the least like-for-like comparison. In that test, the client inserts a row and reads it back, 200 times. Embedded Replicas ran with readYourWrites on, so every write went to the cloud first, which is how most people ended up using them. Turso Sync did all 200 writes and reads locally and pushed once at the end. That's 200 network round-trips against one, so it isn't apples to apples. Still, it's exactly the usage pattern local-first exists for, and it was off the table with page replication, where any write produced different physical pages and conflicted. The fairer comparison pushes after every write, so both sides hit the network on every cycle. Turso Sync still came in at 30 ms per cycle against 218 ms, because a local write plus a push is cheaper than a remote write plus a pull. Workloads with lots of small writes, like the sequential inserts and updates, show roughly 9–10x speedups and 15x less data. When both sides are just downloading a fresh database, they ship about the same bytes, and Turso Sync is 2.1x faster on time. When Embedded Replicas already batch their writes, Turso Sync is only 1.2x faster, though it still sends about a quarter of the data. Last push wins, and where that falls short Turso Sync resolves conflicts with a simple rule: the last push wins. It's easy to reason about, and it's correct for a lot of local-first data. Per-user settings, personal task lists, agent memory and per-device state all fit well, because one writer owns each row. It's the wrong fit when two writers can change the same row while both are offline and both changes need to survive. Counters are the classic example. Two offline devices each decrement the same stock count by one; the second push overwrites the first, and one sale disappears. Two people editing the same document field run into the same problem. You can often design around it. Make data append-only, so each device inserts its own rows (a sale, an edit, a vote) and shared values like stock counts are derived from them. Or give each user their own rows and build shared views on top. If neither works for your data, you'll need merge logic in your application. The benchmark repo includes a conflict-resolution demo that shows the behavior with multiple writers. One side effect to expect: a pull() right after your own push() can still report changes, because the server may send back the result of resolving a conflict. One operational detail to know going in: on first connect, the local database bootstraps from the remote, so the remote has to be reachable. If your app needs to start offline, set bootstrapIfEmpty: false to begin with an empty local database and pull later. After that first run, the app opens straight from the local file, network or not. Coming from Embedded Replicas If you're using libSQL's sync(), our recommendation is to switch to Turso Sync. The libSQL SDKs still support Embedded Replicas, but new projects should start on Turso Sync, and Turso's compatibility with SQLite is now close enough that we're comfortable recommending the move for existing ones too. The main change is in your mental model. Embedded Replicas pulled changes with sync() and, by default, sent writes to the remote. Turso Sync reads and writes locally by default, and you decide when to push() and pull(). If you used the offline: true option to keep writes local, Turso Sync is its modern equivalent, without the extra sync errors that came with it. Where this fits The subway scenario from the top of this post is the obvious case: a mobile or desktop app that writes locally, pushes on reconnect, and pulls when it opens. A person's phone and laptop work the same way, each with its own local copy, kept in step through push and pull. AI agents follow the same shape. An agent writes task state and tool results to its own local database during a session, never waiting on the network, then pushes at a checkpoint or handoff so an orchestrator can pull the latest state. Turso Sync is for keeping a local database in step with Turso Cloud. If your changes need to go somewhere else, such as a search index, a queue, or a webhook, that's a job for CDC directly. On Turso Cloud, sync traffic is metered alongside storage and rows: the Free plan includes 3 GB of syncs a month and the Developer plan 10 GB. Because Turso Sync ships logical changes instead of pages, the same workload uses less of that allowance, as the benchmarks above show. Details are on the pricing page. To try it, install @tursodatabase/sync, start the local sync server, and work through the Turso Sync docs. Turso Database is open source, so if you hit something that doesn't behave the way you expect, open an issue on GitHub.
Original source - Nov 12, 2026
- Date parsed from source:Nov 12, 2026
- First seen by Releasebot:Nov 28, 2026
A database per agent: how Turso and Neon give different answers
Turso removes its final active-database limit, giving paid plans unlimited databases for agent workloads. Its SQLite-compatible databases offer on-demand scaling, per-database isolation, local sync, and options to run in customers’ cloud accounts.
Neon and Turso both give every agent its own database. On Neon, that is a Postgres project with its own compute. On Turso, it is a lightweight database that costs about as much as a file. One question comes up in most of my conversations with teams building agent platforms: how do we give every agent, user, or project its own database without the bill and the operations work growing with each one? Neon and Turso both answer it, and they start from the same observation: agents now create databases far faster than people ever did. They differ on what a single database should be. On Neon, it's a Postgres project with its own compute. On Turso, it's a lightweight database that costs about as much as a file. And since October, Turso is part of Supabase, so a full Postgres platform sits right next to it. Agents need many separate databases Agents have become the main creators of databases. Databricks' 2026 State of AI Agents report found that agents created 80% of new databases and 97% of database branches on Neon by October 2025, up from 0.1% two years earlier. Supabase sees the same pattern: it now adds more than 4 million databases a month, about 70% of them created by agents or AI-driven tools, after reporting a 600% year-over-year increase in databases in June. We've seen the same trend on Turso. AI companies such as Superhuman, Sauna, CTO.new, and Mastra give each agent its own Turso database, and Sauna alone has created more than 2 million. An agent needs a database of its own for four reasons: • No shared schema. An agent that builds an app defines its own tables. A CRM lets each customer add their own fields. With no common schema, there's no single table structure to put everyone's data in. • Isolation. A bad query or a broken migration stays inside one database. There's no tenant filter to get wrong, and one agent can't read another's data. • A clean lifecycle. A task starts with a new database and ends by deleting or archiving it. Nothing is left behind in a shared database. • Data can move with its owner. A per-user database can be synced to that user's device or moved to another region without touching anyone else's data. Database platforms are adjusting their pricing to match. The first response is to raise the limits. Neon lifted its free plan to 100 projects, offers 1,000 on Scale, and runs an Agent Plan that raises the cap further for platforms it approves. Each project is still a Postgres compute billed by the CU-hour, so a platform still budgets for every database and asks for more as it grows. Raising limits is a necessary first step, but it carries over the logic of SaaS pricing, where a plan caps seats or projects and a bigger customer buys a bigger tier. That logic doesn’t account for how agents operate: they create a database for each task, and most of those databases go quiet soon after. A cap that made sense per customer turns into a limit on how an agent can work. The better instinct is to rethink pricing from the primitive up. If a database costs about as much as a file, it can be priced like one: by what it stores and what it reads and writes. That's why every Turso paid plan includes unlimited databases, and why in May 2026 we removed the last limit, on how many could be active in a month (spoiler: unlimited). An agent can create a database for every task without anyone planning for it. That puts Turso among the companies designing natively for agents, not adapting pricing built for people. Neon's answer: a Postgres project per agent On Neon, each agent or tenant gets a project: a Postgres database on separate compute and storage. The compute autoscales, suspends after 5 minutes of inactivity, and resumes in a few hundred milliseconds when the next query arrives. An idle project costs only its storage. Neon is also known for branching. A Neon branch is a copy-on-write copy of a project, and since Neon bundles auth, files, and functions into the project, those come along too. Branches are included up to a limit per project, then billed per branch each month. For fleets, Neon offers 100 projects on its Free and Launch plans and 1,000 on Scale. Platforms that need more can apply for the Agent Plan, which starts from an active Scale plan, needs approval from the Neon team, and raises project limits as usage grows. Compute on that plan costs $0.106 per CU-hour, and storage $0.35 per GB-month. It's a well-built system, and its unit is clear: every database is a Postgres server with a compute that has to be sized, suspended, resumed, and capped. Turso's answer: a database that costs about as much as a file Turso was designed around the way agents use databases. Agent work comes in short bursts: an agent creates a database for a task, runs a few queries, then waits on a person or a tool, sometimes for hours. It may come back to that database, or never touch it again. Turso Database is an open-source, SQLite-compatible database written in Rust, and each database is a file. On Turso Cloud, a single server manages millions of these files, loading a database when something queries it and suspending it when nothing does. Creating a database for a new task is as cheap as creating a file. A database the agent stops using costs only its storage, and there's no compute per database to size, cap, or keep running. For an agent platform, that means: • Databases are created on demand. The Platform API creates one per agent, user, or tenant, and every paid plan includes unlimited databases. • Each database owns its schema. An agent defines its tables without a migration touching anyone else's data. • Isolation comes from the database itself. One tenant's data never shares a table with another's, so there's no row filter to get wrong. • Branches are databases too. Turso Cloud creates copy-on-write branches, and each branch counts as a database, so branching falls under the same unlimited databases on every paid plan. Turso Database is available on Turso Cloud and supports concurrent writes with `BEGIN CONCURRENT`, so several agents or users can write to the same database at once. The 0.8 release made those writes much faster: with group commit, it reached about 9,500 write transactions per second at 64 connections, around 7x SQLite in the same benchmark. The same core can speak more than SQLite. In July, we started building Postgres in Rust on the Turso engine, compiling Postgres SQL down to the same bytecode. The goal is a Postgres-compatible database that can also be a single file, run embedded, and sync to a local copy. It’s an early foundation, and that work now continues as part of Supabase’s roadmap. Where the difference shows up The two models look similar on a free plan. They separate once a platform runs thousands of databases that wake up for a few queries and go quiet again. Neon | Turso One agent's database: A Postgres project with its own compute | A Turso Cloud database on a shared server When idle: Compute suspends after 5 minutes | Database is suspended until the next query Databases on a free plan: 100 projects | 100 databases Databases on paid plans: 100 (Launch), 1,000 (Scale), more through the Agent Plan after approval | Unlimited from the Developer plan, $5.99/month What's metered: Compute (CU-hours), storage, network transfer | Rows read, rows written, storage, syncs Data on the device: Live query results through Neon Realtime (beta); no synced local database yet | Turso Sync keeps a local database on the device in sync with Turso Cloud Where databases run: Neon's cloud, with private networking on Scale | Turso Cloud, or your own AWS or GCP account with BYOC (Enterprise) Customer-managed encryption keys: Not available yet; on Neon's roadmap | A key per database, on the Pro and Enterprise plans Brief activity, billed by what it touched Agent workloads are bursty: an agent runs a few queries, then waits for a person or another tool. On Neon, each burst starts the project's compute, which keeps running and billing CU-hours until the idle timeout passes. On Turso Cloud, the same burst bills the rows it read and wrote. There's no compute clock per database, so a million databases that each run a handful of queries a day cost what those queries touched, plus storage. No approval step for more databases On Turso Cloud, the Developer plan already includes unlimited databases. A platform can go from its first hundred agents to its first hundred thousand without changing plans or applying for a program. Branches and point-in-time restores each count as a database and use storage, so they follow the same rules. A database on the device, not only results Turso Database can run inside the app itself: in the same process on a server, in the browser, or on a phone. With Turso Sync, the app reads and writes that local database, then pushes and pulls changes with Turso Cloud, so an agent or app keeps working when it's offline. Turso Sync runs in production today. Sauna, for example, keeps each user's connected inbox and calendar in its own Turso database, synced through Turso Sync. Neon approaches sync from the cloud side. Its sync is built around Neon Postgres in the cloud, and Neon Realtime keeps the results of live queries up to date in the client. Turso starts from the other end: the database itself runs where the app runs, and Turso Cloud is where it syncs to. Per-agent databases in your own cloud account Many agent platforms sell to enterprises that want agent data to stay in their own cloud account. That gets harder when every agent has its own database: a server per database multiplies the infrastructure you'd have to run there. With Turso Cloud BYOC, the same file-per-database model runs in your AWS or GCP account, so a customer's agents get their own databases without a fleet of servers to manage. An encryption key for each database Turso Cloud supports bring-your-own-key encryption (BYOK), and keys are set per database. A platform can encrypt each customer's agent databases with that customer's own key, so that data stays protected by keys only the customer controls. Neon doesn't support customer-managed keys today. Turso now comes with a Postgres platform For many teams, Neon's advantage was having one vendor for everything, including the Postgres database behind the main app. Since Turso joined Supabase in October, picking Turso for per-agent databases also puts a full Postgres platform in the same company. • The app's main backend can run on Supabase Postgres, with auth, storage, functions, and realtime, while each agent or tenant gets a Turso database. • Workloads have somewhere to grow. Supabase describes a clear path from Turso into the broader Supabase ecosystem as workloads grow. At Supabase Select, Supabase also introduced Spark, a new instance type built on Turso's technology, for scaling out to very large numbers of databases. Turso Cloud stays the home for SQLite workloads, and Turso Database stays open source. When you need Postgres instead Turso isn't the right database for every part of an agent platform. In most of those cases, I'd point a team to Supabase: • The database needs Postgres. If your agents rely on Postgres extensions or Postgres-specific SQL, a Turso database speaks SQLite's dialect. Supabase Postgres covers those parts of the app. • Storage dominates the bill. For a large database that's rarely queried, Supabase's disk pricing is lower: 8 GB per project included on paid plans, then $0.125 per GB-month. Turso's paid plans include 9 GB to 50 GB, then charge $0.45 to $0.75 per GB. One case still favors Neon: agents that each need a copy of a single production app, with its data, auth users, and files. Neon branches the whole backend in under a second, and that's what it's built for. If your agents or users each define their own small database, Turso fits better, and Supabase Postgres is there for everything that needs Postgres. Getting started Turso Cloud's free plan includes 100 databases and 5 GB of storage, with no credit card needed. Create a database per agent through the Platform API, and keep your app's backend on Supabase. Turso Database is open source on GitHub if you want to run it locally first.
Original source All of your release notes in one feed
Join Releasebot and get updates from Turso and hundreds of other software products.
- Nov 11, 2026
- Date parsed from source:Nov 11, 2026
- First seen by Releasebot:Nov 28, 2026
Turso Cloud BYOC: the same product, in your own AWS account
Turso introduces Cloud BYOC, bringing its managed, many-database platform into customers’ AWS accounts. Teams can keep database data and infrastructure in their own cloud while using the same workflows and capabilities for agent, tenant, and user databases.
Agents create data all the time. A coding agent may open a new workspace for every task, and an app builder may generate a fresh schema for every project a user starts. The pattern that fits these workloads is one database per agent, user, or tenant. Turso Cloud was built to run that pattern at the scale of millions of databases. For teams building agent platforms, one question often decides whether they can use a managed database at all: where does the data live? Their customers' data and agent state often can't sit in a vendor's cloud account. The usual alternative is to self-host and take on all the operations. Turso Cloud BYOC (Bring Your Own Cloud) runs Turso Cloud inside your own AWS account. It is the same product, with the same API and the same operations. Your data stays in your account, and Turso has no access to it. BYOC as a deployment model is common, and many database vendors offer a version of it. What Turso adds is the workload it was designed for. Agent platforms create and discard huge numbers of small databases, and many of them share no schema, because each agent or user defines its own. Turso Cloud handles that natively, and BYOC brings the same capability into your environment. What BYOC means in practice Turso Cloud BYOC is a deployment of Turso Cloud in an AWS account you own. If your infrastructure runs on GCP, talk to us about your deployment. In day-to-day terms: • Your infrastructure. Database compute and storage run in your account, in the regions you choose. • Your contract. Usage runs under your existing agreement with AWS, so procurement doesn't need a new infrastructure vendor. • Your infrastructure costs. Compute and storage appear on your own cloud bill. • Managed operations. Database creation and management follow the same workflows as Turso Cloud, so your team doesn't build or operate its own database platform. Turso can offer this because of how Turso Cloud stores data. In 2025, Turso Cloud moved to a diskless architecture: data lives in object storage, and local disks act only as a cache. Database compute nodes carry no local state, so they can be replaced or moved without migrating data. That makes deployment into a customer's account something Turso can automate, instead of a hand-managed cluster of stateful services. Architecture: what runs where Turso Cloud BYOC splits Turso Cloud across two accounts, and almost everything lands in yours. The data plane always runs in your account. That includes the compute nodes that run your databases and the object storage that holds their data. The control plane is federated. The part that creates and manages databases runs in your account, so every database operation happens there. The part in Turso's account holds only billing, organization settings, and metrics. The dashed line is the federated control plane: Turso's side never touches databases or data. From your Turso organization's point of view, a BYOC deployment works like another Turso Cloud region. You create databases in it the same way you would in any other region, and they run on infrastructure you own. What you control With BYOC, the security model of your databases is the security model of your cloud account. Network rules and access policies follow the controls you already apply to the rest of your infrastructure, and databases run only in the regions you deploy to, so data residency stays in your hands. Database contents never leave your account, and Turso has no ability to create, delete, or inspect your databases. For a security review, the answer to "what can the vendor see?" is short: the account-level data described above, and nothing inside your databases. What stays the same Some vendors ship a separate product for self-hosted deployments, and over time its features and release schedule fall behind the managed service. Turso Cloud BYOC runs the same software as Turso Cloud. The only difference is who owns the infrastructure. In practice, that means your application code doesn't change. You use the same SDKs, the same Platform API to create databases on demand, and the same databases: Turso, an open-source, SQLite-compatible database written in Rust. The many-database model works the same way, so an agent platform can still create a database per agent or per user and discard it when the session ends. The Turso Cloud features you build on carry over to BYOC, including: • Concurrent writes. Turso's MVCC lets multiple connections write to the same database at once, instead of waiting on SQLite's single writer. • Bring-your-own-key encryption. Each database can be encrypted with its own key, which stays opaque to Turso. • Point-in-time restore. Continuous backups let you roll a database back to before an agent or a person made a mistake. • Turso Sync. Databases can sync between your BYOC deployment and local copies on devices or servers. It also means you can start on Turso Cloud and move to BYOC later, or run both. A team can prototype in the managed cloud, then deploy to its own account when a customer requires it, without rewriting anything. BYOC vs. on-prem BYOC and on-prem often get grouped together, but they describe different environments. BYOC means Turso Cloud runs in your account with a public cloud provider. On-prem means it runs on hardware in your own data center. Turso Cloud BYOC targets the first case. Its storage layer depends on object storage and on infrastructure that behaves like a public cloud, which is what makes the diskless architecture possible. A data center deployment is possible in principle, but only with S3-compatible object storage and an environment that behaves like AWS. If your requirement is strictly on-prem, talk to us about your setup before planning around it. If you want an embedded database on your own servers or devices, the open-source Turso Database runs anywhere, without the Turso Cloud layer. Where BYOC fits Turso Cloud BYOC is the answer when two needs meet. The first is that data must stay in your AWS account, or in your customer's. The second is that you need a database per agent, user, tenant, or device. Each need on its own has a simpler answer. If you only need to keep one or a few large databases in-house, a self-managed database does the job. If you need many small databases and they can live with a vendor, hosted Turso Cloud gives you that with nothing to deploy. BYOC is for teams that need both at once, and that happens in four common situations. Agent platforms at scale Labs, sandbox vendors, coding-agent companies, and assistant products create databases in huge numbers. Many choose to keep them in their own AWS account, next to their compute and under their own security controls. Two kinds of platform stand out. AI apps, sandboxes, and vibe-coding platforms create a database per generated app or per evaluation run. Shared databases leak data between apps and are hard to clean up, and a Postgres instance per app costs too much when most of them sit idle. With Turso, each app or run gets its own database, created on demand and deleted when it's done. Idle databases cost little, because each one is a file in object storage, not a running server. Branching lets an agent fork a known state, try an approach, and roll back if it fails. Personal and AI assistants keep a memory database per user. When memory lives in a shared store, deleting or auditing one user is painful. With a database per user, deleting a user means dropping one database, and vector search inside each database lets the assistant recall by meaning. SaaS and platforms with enterprise customers Many SaaS products already isolate customers with a database per tenant. Most customers are fine with a hosted service. Enterprise customers often aren't: they want their data in their own cloud, and building a separate deployment for them takes quarters. With Turso, smaller customers run on hosted Turso Cloud and enterprise customers get the same design in their own AWS account, so one architecture serves both tiers. This applies to any multi-tenant product, including software vendors adding agents to their products and platforms where customers build and run agents. Regulated and sovereign workloads In healthcare, finance, insurance, and legal work, security reviews stall when the data layer sits outside the customer's boundary. In-country deployments add a further requirement: data has to stay in a specific jurisdiction. BYOC keeps databases in your AWS account, in the regions your rules require, and Turso can't access them. A database per client or patient limits who can see what, and makes deletion and export simple. Enterprises running internal agent platforms use the same pattern, with a database per agent inside their own network. Your team gets the many-database model without building its own database platform. Device fleets Vehicles, handhelds, and devices in the field lose signal, but work has to continue. Fleets need local speed on each device and a fleet-wide view in the cloud, without stitching two different databases together. Turso runs on the device as an embedded database and syncs with a database per device in your AWS account when the connection returns. The same engine runs in both places, so the same queries work on the device and in the cloud. Offline sync is in beta, and it isn't meant for safety-critical control paths. Get started If you're evaluating where your agents' data should live, contact our team to talk through a BYOC deployment in your AWS account. To see how Turso Cloud works first, including creating a database per user or agent, try Turso Cloud free.
Original source - Nov 5, 2026
- Date parsed from source:Nov 5, 2026
- First seen by Releasebot:Nov 28, 2026
Change Data Capture in SQLite, Without the Triggers
Turso adds built-in change data capture to Turso Database, recording committed inserts, updates, deletes, and schema changes without custom triggers. The feature supports transaction-aware consumers for syncing caches, search indexes, and audit trails, with practical guidance on polling, recovery, and current limitations.
Built-in CDC in Turso Database records every insert, update, and delete for you. Here is how it works, where it is rough, and how to write a consumer that survives restarts. What CDC gives you CDC means capturing every row-level insert, update, and delete in a source database and exposing those changes as an ordered stream, so consumers never have to re-read whole tables. If you've used Debezium or Postgres logical replication, you already know how it works. CDC sees deletes, which a watermark query like SELECT ... WHERE updated_at > ? never will, because a deleted row has no updated_at left to compare. That blind spot is the common reason hand-rolled incremental pipelines slowly drift from their source (Datus has a good comparison of capture methods). CDC is also ordered. If a row is updated three times in one second, a consumer that applies those changes in commit order ends up exactly where the source did. It has its limits. Row changes are database facts: "Row 42 in users was updated" carries less meaning than "Alice upgraded her plan," so if you want domain events you still need a translation layer such as the outbox pattern. CDC also doesn't deliver anything in itself: it gets changes out of the database, but whether they go to Kafka, a webhook queue, or a Redis channel is still your decision. SQLite CDC before Turso SQLite never exposed its write-ahead log as a replication stream. There’s no logical replication slot and no durable change feed that another process can read, so developers have had to piece one together. The most common approach is triggers. You write insert, update, and delete triggers for every table you care about, each copying the row into a shadow log table, and a worker polls that log. Kevin Conway's sqlite-cdc is an implementation of this approach, and its benchmarks are refreshingly honest. On narrow tables the triggers roughly double the cost of each write (which makes sense, since every modification now does an extra insert), and on 64-column tables updates and deletes run at two to three times the baseline. In absolute terms that's tens of microseconds, and the author considers it marginal for most workloads. The cost in this case is maintenance: add a column and you rewrite the trigger, add a table and you write three more. The other option is reading the WAL file directly. That gives you page-level changes that you then have to decode into rows, it depends on SQLite internals that can shift between versions, and it's a lot to own as an application developer. SQLite does ship two lower-level building blocks. The session extension records changes to the tables you attach and hands them back as a changeset, but it has to be compiled in, and you extract changesets on your own schedule rather than reading a continuous stream. The update hook calls a function in your process on every row change, but nothing is written down, so a crash loses whatever your callback hadn't handled yet. How CDC works in Turso Database In Turso Database, our open-source rewrite of SQLite in Rust, CDC is one PRAGMA: PRAGMA capture_data_changes_conn('full'); From then on, the engine itself records every insert, update, and delete made on that connection into a regular table, turso_cdc by default. You don't write triggers, and there's nothing to keep in step with your schema. Each row looks like this: Column | What it holds change_id | Auto-incrementing ID, in commit order change_time | Unix timestamp of the change change_txn_id | Transaction ID shared by every row changed in one transaction change_type | 1 insert, 0 update, -1 delete, 2 commit table_name | The table that changed id | Primary key or rowid of the changed row before, after | Binary images of the row before and after the change updates | Per-column change details (full mode only) Built-in helpers decode those images into JSON: SELECT change_id, id, bin_record_json_object(table_columns_json_array('projects'), after) AS after_state FROM turso_cdc WHERE table_name = 'projects' AND change_type != 2 ORDER BY change_id; The mode argument controls how much gets stored. id keeps only the primary key, which is plenty for cache invalidation. before and after each keep one side of the change, and full keeps both, plus per-column details for updates. You can also name the table, as in PRAGMA capture_data_changes_conn('full,audit_log'), so different connections can feed different streams. The CDC docs cover the full reference. CDC respects transaction boundaries. Changes are recorded only when a transaction commits, so a rollback leaves nothing behind. Every row changed in one transaction shares a change_txn_id, and a single COMMIT record closes the group. That grouping traces back to a community request built around credits and debits tables updated in one transaction. A consumer that applies the credit without the debit shows a balance that never existed. Grouping by transaction lets the consumer apply both or neither. Schema changes show up in the stream too. A CREATE TABLE, DROP TABLE, or CREATE INDEX is recorded as a change to sqlite_schema, so a consumer can detect schema changes. Rough edges CDC is one of Turso Database’s newer features, so it’s being actively developed. Pin your version and check the changelog when you upgrade. It also comes with some constraints: • Decoding uses the current schema. table_columns_json_array() returns today's columns, so if you drop a column, older records decode with shifted column mappings. If you need history across migrations, snapshot the column list before you change the schema. The sqlite_schema records in the stream tell you when that moment comes. • The change table grows until you prune it. turso_cdc is an ordinary table. The consumer section below shows a retention pattern. • Capture is per connection. Any write connection that never ran the PRAGMA produces changes your consumers will never see. Enable it wherever your application opens write connections, not only in the code path you tested. Writing a consumer The most dependable consumer is a polling loop with a watermark. It's pull-based, easy to reason about, and safe to kill at any moment. Here's a sketch using @tursodatabase/database: import { connect } from "@tursodatabase/database"; // Application writes go through a connection with CDC enabled. const writer = await connect("app.db"); await writer.exec("PRAGMA capture_data_changes_conn('full')"); // The consumer uses its own connection with CDC off, // so its bookkeeping never shows up in the change stream. const reader = await connect("app.db"); await reader.exec("CREATE TABLE IF NOT EXISTS cdc_offsets (consumer TEXT PRIMARY KEY, last_id INTEGER)"); const BATCH = 500; async function poll(apply) { const offset = await reader.prepare("SELECT last_id FROM cdc_offsets WHERE consumer = 'search'").get(); let cursor = offset?.last_id ?? 0; // how far this tick has read const open = new Map(); // transactions still waiting for their COMMIT while (true) { const changes = await reader.prepare(` SELECT change_id, change_txn_id, change_type, table_name, id, CASE WHEN table_name = 'projects' THEN bin_record_json_object(table_columns_json_array('projects'), after) END AS after FROM turso_cdc WHERE change_id > ? ORDER BY change_id LIMIT ${BATCH} `).all(cursor); for (const change of changes) { cursor = change.change_id; const group = open.get(change.change_txn_id) ?? []; if (change.change_type !== 2) { group.push(change); open.set(change.change_txn_id, group); continue; } await apply(group); // one transaction's changes, applied as a unit open.delete(change.change_txn_id); if (open.size === 0) { await reader.prepare("INSERT OR REPLACE INTO cdc_offsets VALUES ('search', ?)").run(change.change_id); } } // Caught up: stop until the next tick. if (changes.length < BATCH) return; } } Changes are buffered per change_txn_id and only handed to apply when that transaction's COMMIT record arrives. The loop keeps reading pages until it's caught up, so a transaction larger than one batch still completes instead of stalling the consumer on the same 500 rows. The watermark only advances when no groups are open, which means a crash can replay a transaction you already applied. Make apply idempotent; a Redis SET or a search PUT keyed on the row ID already is. For retention, run DELETE FROM turso_cdc WHERE change_id <= ? against the slowest consumer's watermark on a schedule. Because the reader connection has CDC off, that cleanup doesn't generate change records of its own. Keep in mind that on a synced database, this could delete changes that Sync hasn’t pushed yet. What to build on it The most common use is cache and search sync. The write path becomes a single UPDATE, and the consumer keeps Redis and the search index current as derived views of the database. If it falls over, it resumes from its watermark. Audit trails are a close second. Capture happens below your application code, so a forgotten audit call in some rarely used admin endpoint can't create a gap. before gives you the old state and change_time the timestamp. What CDC can't tell you is who or why. For that, write the user ID and reason to an audit context table inside the same transaction, and the shared change_txn_id ties it to the row changes. CDC also fits architectures with many small databases, one per tenant, user, or agent. Each database records its own changes, and a consumer per database feeds a central store, which is how platform-wide analytics stay current without re-reading every tenant's tables. My last post on the many-database architecture covers where that pipeline fits. If you need a local database kept in step with Turso Cloud, use Turso Sync (usage docs). It’s built on this same CDC, and handles push and pull for you. Build on CDC directly when the changes need to go somewhere else: a queue, a search index, or a coordination service that other agents read from. Back to that projects table: the four side effects still need care, but they now run in a consumer outside the request path, and the write path is one UPDATE again. Check the CDC documentation, and if you hit something odd, we'd like to hear about it on GitHub or Discord.
Original source - Nov 4, 2026
- Date parsed from source:Nov 4, 2026
- First seen by Releasebot:Nov 28, 2026
Turso Cloud now runs in Singapore and Frankfurt
Turso Cloud adds Singapore and Frankfurt, bringing its footprint to twelve regions. The new locations give apps in Southeast Asia faster database access and let teams keep data in Germany, expanding options for low-latency workloads and data residency.
Two new AWS regions: Singapore and Frankfurt. Turso Cloud now runs in twelve regions. On October 1, Turso Cloud added Australia, Brazil, Canada, and Sweden. This week, we're adding Singapore and Frankfurt. Singapore is where most apps serving Southeast Asia run. Until today, an app there reached its nearest Turso Cloud region, Mumbai, at about 62 ms per round trip. In-region, that round trip takes about 1 ms (CloudPing medians, October 30, 2026). Frankfurt covers a different need. Apps in central Europe already had Dublin and Stockholm close by, but some teams need their data to stay in Germany. Now it can. #What Turso Cloud is If the only thing standing between you and Turso Cloud was a region in Singapore or Germany, you're out of excuses. Here's what you get. Turso Cloud is the managed version of Turso, the open-source, SQLite-compatible database. Each database is a file in object storage, with no server process running for it. That lets you create one for every agent, user, or tenant: an idle database costs only its storage, and there is no cold start when it's queried again. AI agents fit this model well. Each agent gets its own database for its memory and its log of actions, and can branch that database before a risky step and roll back if the step fails. Many of these workloads have no shared schema either. An agent, or a user of a CRM or app builder, defines its own tables, and a database per entity handles that without forcing everyone into one schema. Once every agent, user, or tenant has its own database, you can also decide where each one lives. An agent serving users in Jakarta can run against a database in Singapore. A tenant whose contract requires data to stay in Germany can live in Frankfurt, while your other tenants stay where they are. Location is set per group, so one Turso account can serve tenants in several countries. Each new region adds to the places you can put them. #All Turso Cloud regions Country | Location | Location code United States | Virginia | aws-us-east-1 United States | Ohio | aws-us-east-2 United States | Oregon | aws-us-west-2 Canada | Central | aws-ca-central-1 Brazil | São Paulo | aws-sa-east-1 Ireland | Dublin | aws-eu-west-1 Germany (new) | Frankfurt | aws-eu-central-1 Sweden | Stockholm | aws-eu-north-1 India | Mumbai | aws-ap-south-1 Singapore (new) | Singapore | aws-ap-southeast-1 Japan | Tokyo | aws-ap-northeast-1 Australia | Sydney | aws-ap-southeast-2 To create a database in a new region, create a group there and add your database to it: turso group create --location aws-ap-southeast-1 my-group turso db create --group my-group my-db The current list of locations is always available in the docs. #Why these two Turso Cloud writes its Write-Ahead Log to S3 Express One Zone, AWS's low-latency storage class, and compacts it back into S3 asynchronously. That means we can only run where AWS offers S3 Express. Our October 1 post explains why we made that trade-off. Paris, Seoul, and N. California are still on our list. If one of them matters to you, tell us on Discord. #Sign up for Turso today If you're building in Southeast Asia or Germany, your agents, users, and tenants can now have a database close to home, with the response times and data residency that come with it. Sign up for Turso Cloud today at https://turso.tech/signup
Original source Similar to Turso with recent updates:
- Smokeball release notes149 release notes · Latest Nov 11, 2026
- Cosmolex release notes20 release notes · Latest Jul 30, 2025
- PracticePanther release notes37 release notes · Latest Oct 27, 2026
- Salesforce release notes105 release notes · Latest Nov 1, 2026
- Microsoft release notes1233 release notes · Latest Nov 25, 2026
- Zoom release notes230 release notes · Latest Nov 26, 2026
- Oct 30, 2026
- Date parsed from source:Oct 30, 2026
- First seen by Releasebot:Nov 28, 2026
Databases as Variables: What Unlimited Databases Actually Changes
Turso removes active-database limits on paid Cloud plans, making databases cost only storage while idle. The change makes per-tenant, per-agent, and preview databases more practical, while storage and usage limits still apply.
What changes when a database is free to create and costs only storage while idle. Every SaaS data model I've seen starts with the same bit of arithmetic. You have 10,000 users. You know a database per tenant would give you cleaner isolation and a shorter compliance conversation, and that deleting an account would mean deleting one database. You also know that 10,000 databases means 10,000 things to provision, monitor, migrate, and pay for. So you add a tenant_id column to every table, scope every query to the current tenant, and move on. For a lot of products, that's still the right call. But if cost is what decided it, check whether that cost still exists. So change one input. A database is free to create and costs only storage while idle, so 10,000 of them cost about what 10,000 small files cost. The arithmetic flips, and a many-database architecture starts to look like a sensible default for many products. This post covers how Turso Cloud pricing works, which patterns become practical, and which constraints are still there. If you're weighing this for a multi-tenant SaaS product specifically, our post on the many-database architecture is the full decision guide. No limit on active databases Paid Turso Cloud plans have included unlimited databases for a while. The catch was a limit on active databases, meaning any database that received at least one query in a billing cycle. We added that metric because some of our infrastructure costs scaled with active databases, but it produced exactly the question we never wanted anyone asking: "should I add a database here?" As the announcement post in May put it, we couldn't live with ourselves. The scenario we heard most was that a team would have thousands of tenants who barely touched their data, yet each one ran just enough queries in a month to count as active. Paying for all of them as active databases made the per-tenant model expensive at exactly the scale where it should pay off. That's the trade-off Turso exists to remove. So we removed the limit: every paid plan now includes unlimited databases with no active-database accounting. The Developer plan starts at $4.99/month and includes 9 GB of storage, 2.5 billion rows read, and 25 million rows written. Database count isn't metered at all, and idle databases cost only storage. This works because of how Turso Cloud stores data. A Turso database is a file, not a long-running server process. In Turso Cloud, that file lives as a set of 128 kB segments in object storage (the What is Turso page explains the storage layer in more detail), so an idle database has nothing running: nothing to scale to zero, and no cold start when a query finally shows up. A small tenant database of a few hundred kilobytes barely registers against a 9 GB allowance, so you can fit tens of thousands of them before storage becomes a concern. Thinking in databases the way you think in variables You don't hold a design review before allocating a hash map. You create it where you need it and drop it when you're done (at least, I hope that's what you do!). One of our goals has been to make databases as easy to create as variables in your code, and removing the active limit is what makes that comparison hold up in practice. Most of the change is in where isolation comes from. In a shared database, everyone's rows live together and separation is something you enforce, either with a WHERE tenant_id = ? in every query or with row-level security policies that apply it for you. Done well, that works. When databases are cheap, you get another starting point: begin from separation, then decide what actually needs to be shared. A query against tenant A's database can't return tenant B's rows, because tenant B's rows aren't in it. Compute went through something similar. Before functions-as-a-service, you thought hard about how many servers to run and how to pack work onto them. Once an idle function cost nothing, people stopped rationing them. Databases are heading the same way, and the useful design question becomes "what's the natural unit of isolation in this system?" Patterns that stop being expensive The most direct one is a database per tenant, at whatever scale you reach. Backup, point-in-time restore, and deletion all operate on one customer without touching anyone else. When a prospect asks where their data lives, you can answer "in its own database, reachable only with a token scoped to it," and what's left to verify is the small routing layer that picks the right database for each request. And the 8,000 tenants who log in once a month cost their storage footprint and nothing more. AI agents follow the same logic on a shorter timescale. An agent gets a fresh database at the start of a session for its memory, tool call results, and intermediate state. Branching is instant, so an agent can also fork its state, try something, and roll back if it fails. When the session ends, you archive the database or delete it. Under the old model, every session database counted as active in the month it ran, so a busy agent platform paid for thousands of short-lived databases. Now each one costs only its storage and the reads and writes it actually does. Experiments are a good fit too. If an A/B test needs a different data shape for the treatment group, give the experiment its own database instead of adding nullable columns to the production schema. When the test wraps up, there's nothing to migrate out of the main tables. These databases get heavy use for a few weeks and then go quiet, which is the usage profile that active-database pricing used to penalize. Regulated products get a more structural approach. A therapy platform or a legal document service can keep each user's records in a separate database, which keeps every user's data isolated for compliance even when most users are rarely active. Separate databases are easier to walk an auditor through than a set of policy definitions. You still need proper access controls and agreements in place, but the isolation itself no longer has to be proven query by query. Preview environments are the last one. Each pull request can get its own database, and because branching in Turso Cloud is a metadata-only, copy-on-write operation, a new branch is effectively instant. Branch from a sanitized copy of your data rather than production itself, and throw the branch away when the PR merges (branching doesn't add usage cost). The provisioning layer The new code in a database-per-whatever design is small: a function that creates a database when a new entity appears and returns credentials for it. With the Platform API and the @tursodatabase/api client, that's two calls. Seeding from an empty template database means every new tenant starts with your current schema already applied: import { createClient } from "@tursodatabase/api"; // Use a token scoped to the "tenants" group, not your whole org const turso = createClient({ org: process.env.TURSO_ORG!, token: process.env.TURSO_API_TOKEN!,}); // Called when a tenant signs up export async function provisionTenant(tenantId: string) { const db = await turso.databases.create(`tenant-${tenantId}`, { group: "tenants", seed: { type: "database", name: "tenant-template" },}); const { jwt } = await turso.databases.createToken(db.name); return { url: `https://${db.hostname}`, authToken: jwt };} Store the URL and token, encrypted, alongside the tenant record. Your request handler looks up the tenant, opens a connection with @tursodatabase/serverless, and everything below that point is ordinary single-tenant code: import { connect } from "@tursodatabase/serverless"; export async function listInvoices(tenant: { dbUrl: string; dbToken: string; }) { const conn = connect({ url: tenant.dbUrl, authToken: tenant.dbToken,}); const stmt = conn.prepare("SELECT id, total, status FROM invoices ORDER BY created_at DESC"); return await stmt.all();} There's no tenant_id filter in that query, and nothing to forget. Our many-database architecture post covers the rest of this layer, including tokens issued by your auth provider and which driver to use with an ORM. When a shared schema is still the right call Cheaper databases change the cost argument, but not every argument. Here's the short version of what I usually recommend: • Start with a shared schema if you're early, your customers aren't regulated, and nobody has asked about isolation yet. It's also a strong fit when you have thousands of tenants with small, similar workloads, when cross-tenant analytics are central to the product, or when documented logical isolation satisfies your customers' compliance requirements. If you already run Postgres well and your row-level security policies are tested, that's a perfectly good place to be. • Take database-per-tenant seriously from day one if you sell into healthcare, finance, or legal, if enterprise deals hinge on the security review, or if per-tenant backup, restore, export, or data residency are part of the product. • Or mix the two. A common middle path keeps the long tail of small tenants on a shared schema and gives enterprise or regulated accounts their own databases, especially as it's now much cheaper with an idle database costing only storage. My post on the many-database architecture walks through each of these in detail. What's still hard Running many databases, even cheap ones, still takes work. Cross-tenant queries need their own path. Platform analytics and billing rollups both want to look across databases, and at fleet scale that means a pipeline that reads from each database and lands the data in a central store. Change data capture can make that pipeline incremental, so it only picks up what changed. It's available on Turso Cloud databases that run on the Turso Database engine. Migrations become a fleet operation when tenants share a schema. In a single shared database you run ALTER TABLE once. With 50,000 databases you need a runner that lists databases through the Platform API, applies the change to each one, records which succeeded, and retries the stragglers. You only have to build it once, but build it before you have 50,000 tenants. Backward-compatible migrations help a lot here, since some databases will be a version ahead of others for a while. If each tenant defines its own schema, there's no fleet-wide migration to run: each database's schema changes on its own. Some products never had a shared schema to begin with. In a CRM, each customer defines its own objects and fields. In a no-code builder, users design their own tables. An AI agent may create tables as it works. Squeezing all of that into one shared schema usually ends in generic key-value tables or JSON columns that are hard to query and harder to index. A database per tenant lets each one have exactly the schema it needs. Routing and monitoring change shape too. Your application needs a small layer that maps each request to the right database, and when something breaks, it may break for exactly one tenant. Finally, unlimited databases start with the Developer plan; the Free plan includes 100. And unlimited databases doesn't mean unlimited storage or rows. A fleet full of real data costs what its data costs, so storage is the number to watch as you grow. Where this leaves tenant_id Most of us reached for tenant_id because a database per tenant cost too much to justify. On Turso Cloud, that reason is gone. Plenty of other good reasons to share a schema remain, and for many products they'll win. But if cost was the only thing holding you back, isolation by construction is easier to reason about than isolation you enforce in every query, and when construction is a single API call, it's easy to try. Plan details are on the pricing page, and the Platform API docs cover provisioning, tokens, and groups. You can try Turso Cloud free with up to 100 databases. If you build something on a database-per-agent or database-per-user design, come show us in the Turso Discord!
Original source - Oct 8, 2026
- Date parsed from source:Oct 8, 2026
- First seen by Releasebot:Nov 28, 2026
- Modified by Releasebot:Nov 28, 2026
Turso is now in the Cursor Marketplace
Turso launches a Cursor plugin that lets coding agents create, branch, manage, and query databases directly in the editor. OAuth makes setup simple, and the hosted MCP server also works with Claude Code and Codex.
Install the Turso plugin from the Cursor Marketplace and let your coding agent create, branch and query Turso databases without leaving the editor.
Your coding agent can now work with Turso databases directly from Cursor. The Turso plugin is live in the Cursor Marketplace, and it takes one command to set up.
Get started
In Cursor, run:
/add-plugin tursoSign in to Turso in your browser and you're done. You don't need to create an API token or paste one into a config file. Authentication goes through OAuth, so your credentials stay out of your project.
What your agent can do
Once the plugin is installed, your agent can manage Turso Cloud and query your data without leaving the editor:
- Create and delete databases as your project needs them
- Branch databases to try a migration or test against real data without touching production
- Run SQL to inspect schemas, seed data or debug a query
- Manage organizations and groups, and view usage analytics
The plugin also comes with a Turso skill that gives your agent background on the SQLite, libSQL and Turso ecosystem: which engine to pick, which driver to use and what the tradeoffs are. You get better answers and less guesswork.
Works with Claude Code and Codex too
The plugin runs on the hosted Turso MCP server, and that same server works with Claude Code and Codex. Whatever agent you use, you can point it at Turso the same way. See the setup instructions for Claude Code and Codex.
Try it
Install the plugin from the Cursor Marketplace, sign in, and ask your agent to spin up a database. The source is on GitHub. We'd love to hear what you build with it.
Original source - Oct 7, 2026
- Date parsed from source:Oct 7, 2026
- First seen by Releasebot:Nov 28, 2026
Toasty now fully supports Turso
Turso now supports the Toasty async Rust ORM across local databases with concurrent writes, local-first sync, and remote access over HTTP. Developers can use the same models and queries across all three modes, with batching to reduce network round trips.
Toasty, the async Rust ORM, now supports Turso in all three modes: local files with concurrent writes, local-first sync, and fully remote over HTTP. You all have seen the news: DHH declared loud and clear in the Ruby on Rails keynote: Now that AI writes all the code, Rust is everywhere. (I disagree with him that Rust code is ugly, but let's not go there!) This is especially close to my heart: In the early days of my career, I was myself a long-term contributor to Ruby on Rails. I always loved the simplicity, the guardrails, and the "let's get it done" attitude of the framework. For the Rust community, my claim to fame was that I have later built the Tokio executor for Rust. I now have hopes to extend that work and bring some of the Rails energy to the Rust world. To achieve that, I have been building two projects: topcoat, a batteries-included framework for building web apps, and toasty, an async ORM that aims to provide ergonomic access to the most used databases out there. RoR is big on SQLite, and deservedly so: with an unmatched local experience, SQLite allows every RoR app to hit the ground running without any extra setup. With Toasty, we are going one step further: we are partnering with Turso to provide the same experience, but building on a modern version of SQLite that offers new features like concurrent writes, sync, etc. In this article I'll walk you through the basics of how to make the most out of Turso on Toasty. #The basics Toasty supports 3 modes for Turso: • fully local • sync, with an external sync server • remote, with direct access to the Turso Cloud The goal is that aside from the constructors, everything should feel the same regardless of what you are doing. For example, this is how we'd define a model: #[derive(Debug, toasty::Model)] struct Article { #[key] #[auto] id: uuid::Uuid, #[unique] title: String, views: i64, } #Local database, concurrent writes The easiest way to start with Turso and Toasty is a plain file on disk: no server, no network. The default behavior is the same as SQLite's: writes are serialized on a single lock. But with the concurrent_writes flag, we can achieve concurrent behavior: let driver = toasty_driver_turso::Turso::file("local.db").concurrent_writes(); let mut db = toasty::Db::builder().models(toasty::models!(Article)).build(driver).await?; db.push_schema().await?; To exercise it, seed one article per writer and spawn eight tasks. Db is cheaply clonable (clones share the connection pool), so each task gets its own handle. To achieve write concurrency in Turso, we need to wrap the transactions in BEGIN CONCURRENT. Toasty does that automatically when the database is opened in concurrent_writes() mode. For example, the following code will update 20 articles concurrently to bump their view count: let mut db = db.clone(); tokio::spawn(async move { for _ in 0..20 { let mut tx = db.transaction().await?; // BEGIN CONCURRENT let mut article = Article::filter_by_title(format!("Article {w}")).get(&mut tx).await?; toasty::update!(article { views: article.views + 1 }).exec(&mut tx).await?; tx.commit().await?; } Ok::<(), toasty::Error>(()) }); #Serverless: SQLite over HTTP In environments where you don't want to deal with a local file (edge functions, stateless compute), or just because you want the convenience of accessing a fully-remote database, you can use Turso with the serverless driver — the same model as our serverless JavaScript driver, now from Rust. The main difference is that instead of passing a file, you pass an URL and a token. There is also no need to specify the concurrency mode, since that will be determined by the remote. let driver = toasty_driver_turso::Turso::new(url)?.with_auth_token(token); Everything else is the same Toasty code as the local examples. Here we're creating an article, and then doing a transaction over the wire: let article = toasty::create!(Article { title: format!("Hello from a serverless connection ({})", uuid::Uuid::new_v4()), views: 0, }).exec(&mut db).await?; let mut tx = db.transaction().await?; let mut fetched = Article::get_by_id(&mut tx, &article.id).await?; toasty::update!(fetched { views: fetched.views + 1 }).exec(&mut tx).await?; tx.commit().await?; #Prefer batches over the network For remote databases, there is one thing to keep in mind: over HTTP, every statement in a transaction is an extra round trip to the server. That's the right tool when later statements depend on earlier results, but when they don't, batches may yield better performance: toasty::batch() composes independent statements into a single request, and the results come back as a typed tuple matching the inputs. Here we create two articles and list everything in one round trip: let (first, second, articles) = toasty::batch(( toasty::create!(Article { title: format!("Batched article one ({})", uuid::Uuid::new_v4()), views: 0, }), toasty::create!(Article { title: format!("Batched article two ({})", uuid::Uuid::new_v4()), views: 0, }), Article::all(), )).exec(&mut db).await?; And because batches work against local files too, your code can always stay the same: write with batches where it makes sense, and the one-round-trip benefit kicks in automatically whenever the database happens to be on the other side of a network. #Sync: local-first access, backed by a remote database The last mode we'll explore is Sync. Because sync has both a local and a remote component, you have to specify both the local file, and the remote location to connect to: let driver = toasty_driver_turso::Turso::file("synced.db").with_remote_url(url).with_auth_token(token); The one main difference, is that Turso lets you control when to pull changes into the local files, or push changes to the remote. You can do this inside a task periodically, or at specific points where you need to guarantee durability (for example once a user presses the "Save" button): if driver.pull().await? { println!("pulled fresh changes from Turso Cloud"); } driver.push().await?; #Summary Toasty is an async Rust ORM that brings the Rails "let's get it done" energy to Rust, and Turso is now fully supported across all three of its modes. The same Article model and the same queries ran unchanged against a plain local file with concurrent writes, a local-first replica that pushes and pulls from Turso Cloud, and a fully remote database over HTTP — the only thing that changed between those examples was the driver constructor. That's the promise: start with a file on disk and zero setup, and when your app grows into sync or serverless, your data layer comes along without a rewrite. Go try it! The Toasty guide will get you from zero to a running app, and you can create a free Turso database when you're ready to go to the cloud. The code is on GitHub at tokio-rs/toasty; issues, ideas, and contributions are very welcome. We'd love to hear what you build.
Original source - Oct 1, 2026
- Date parsed from source:Oct 1, 2026
- First seen by Releasebot:Nov 28, 2026
- Modified by Releasebot:Nov 28, 2026
Turso Cloud now runs in Australia, Brazil, Canada, and Sweden
Turso expands its cloud database service to Sydney, São Paulo, Central Canada, and Stockholm, giving developers in Australia, Brazil, Canada, and Sweden nearby database options for lower latency and in-country data residency.
Four new AWS regions: Sydney, São Paulo, Central Canada, and Stockholm. Your agents, users, and tenants can now have a database close to home.
We built Turso Cloud so every agent, user, and tenant can have its own database, and that database belongs in the same region as the app using it.
Today, Turso Cloud is available in four new regions: Australia, Brazil, Canada, and Sweden.
Developers in those countries have long asked for a region close to them. Some need lower latency: until today, an app in Sydney reached its database in Tokyo at about 109 ms per round trip, and an app in São Paulo reached N. Virginia at about 115 ms. In-region, that round trip takes about 1 ms (CloudPing medians, September 30, 2026).
Others need to keep data in-country to meet data residency requirements. Both now have a home on Turso Cloud.
All Turso Cloud regions
Turso Cloud now runs in ten AWS regions across four continents.
Country Location Location code 🇺🇸 United States Virginia aws-us-east-1 🇺🇸 United States Ohio aws-us-east-2 🇺🇸 United States Oregon aws-us-west-2 🇨🇦 Canada (new) Central aws-ca-central-1 🇧🇷 Brazil (new) São Paulo aws-sa-east-1 🇮🇪 Ireland Dublin aws-eu-west-1 🇸🇪 Sweden (new) Stockholm aws-eu-north-1 🇮🇳 India Mumbai aws-ap-south-1 🇯🇵 Japan Tokyo aws-ap-northeast-1 🇦🇺 Australia (new) Sydney aws-ap-southeast-2To create a database in a new region, create a group there and add your database to it:
turso group create --location aws-ap-southeast-2 my-group turso db create --group my-group my-dbThe current list of locations is always available in the docs.
How the Turso Cloud works
When we built the Turso Cloud, we made a bet: in order to build a scalable system that would scale to billions of databases, be maintainable, and run inside customers' own cloud accounts, we had to build a system that was fully backed by Object Storage, in particular, AWS S3.
The usual problem is that the latency of writing to S3 makes it impractical to run a transactional database. This is where Turso made a bold and novel choice: We write the Write-Ahead Log (WAL) to S3 Express One Zone, AWS's low-latency storage class, and compact it back into S3 asynchronously.
Our choice of S3 Express came with a trade off: it was initially available in only a few regions. We bit the bullet and placed the bet: over time, the service would be available in more regions.
Our bet paid off
For longer than we'd have liked, that bet meant that we had to make our users in those regions sad. We did not like it, but we were not ready to give up on the scalability and simplicity of S3-native design to our customers.
On September 17, 2026, AWS brought S3 Express One Zone to seven more regions. S3 Express now runs in all four of today's new regions, so Turso Cloud can too.
The same expansion also reached Singapore, Paris, Seoul, and N. California. We're looking at those next. If one of them matters to you, tell us on Discord.
Sign up for Turso today
If you're building in Australia, Brazil, Canada, or Sweden, your agents, users, and tenants can now have a database close to home, with the response times and data residency that come with it.
Sign up for the Turso Cloud today at https://turso.tech/signup
Original source - Sep 29, 2026
- Date parsed from source:Sep 29, 2026
- First seen by Releasebot:Nov 28, 2026
Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck
Turso releases version 0.8 with faster concurrent writes, dramatically lower transaction tail latency, and support for window functions and recursive queries. The update also brings full-text search to MVCC and improves query optimization, making the engine more capable under demanding workloads.
Today we are announcing the release of Turso 0.8. We are continuing work from the previous release to improve the engine under real-world workloads. So far, we've focused on SQLite features, compatibility, and correctness. However, performance is a big part of why people love SQLite. It runs like a bat out of hell for read-intensive workloads, and it also performs well for single-threaded writes. However, SQLite's single-writer transaction model means higher transaction tail latency and limited write-throughput scalability under concurrent writes. Turso's architecture is designed for high concurrency with asynchronous I/O, but we haven't fully taken advantage of it yet. This release therefore focuses on concurrent write performance with BEGIN CONCURRENT. For this release, we focused on two specific performance areas: • Transaction latency: 99.9th percentile latency of 2.4 ms at 32 connections (vs. 1.2 s for SQLite, 500x lower) • Concurrent write throughput: 9,500 TPS at 64 connections (vs. 1,370 TPS for SQLite, 7x higher) Let's go through them one by one. #Transaction latency: up to 500x lower tail latency than SQLite Transaction latency is how long a transaction takes to start and commit while other transactions are running concurrently. SQLite has high transaction latency under concurrent transactions because it allows only a single write transaction at a time. Turso addresses this limitation with BEGIN CONCURRENT; transactions can start and commit even when other transactions are running. To measure transaction latency, we implemented a microbenchmark that schedules 1000 transactions per second using a Poisson arrival distribution and measures the time from when a transaction is scheduled until it commits. Transaction latency in this benchmark therefore also includes the time a transaction waits to start after it is scheduled. As shown in Figure 1, Turso's transaction 99.9th percentile latency stays under 6 ms from 8 to 32 connections, going from 5.9 ms at 8 connections down to 2.4 ms at 32 connections, while SQLite's grows from 730 ms at 8 connections to 1.2 s at 32 connections. With a single connection the two engines are on par up to the 99th percentile, at 5.8 ms for SQLite and 5.1 ms for Turso, but SQLite's 99.9th percentile is already 73 ms against Turso's 14 ms. In this benchmark, SQLite is limited by its single-writer transaction model, while Turso's MVCC allows transactions to start independently, and commit in groups, which is an optimization we added in this release. To illustrate why Turso has such a big advantage here, let's use a Ben Dicken-inspired balls animation. In this animation, transactions originate on the left connections and execute in the database on the right. In SQLite, a transaction must take the single write lock before it can execute, and if it finds the lock held, it sleeps for an increasingly long time before trying again, so the lock can sit idle while writers are still asleep. Those sleeps are what push SQLite's tail latency into the hundreds of milliseconds and beyond one second. With BEGIN CONCURRENT, transactions in Turso execute immediately and commit together in groups, so latency stays close to the cost of a single commit. #Concurrent write throughput: up to 7x higher than SQLite Concurrent write throughput is how many transactions per second an engine can commit when multiple connections are writing at the same time. SQLite is extremely efficient for single-writer workloads, but it does not scale well with multiple writers. Turso's MVCC engine allows multiple writers to commit concurrently, which improves throughput under concurrent writes. To measure concurrent write throughput, we implemented a microbenchmark that schedules 100 rows per transaction on disjoint keys, with a Poisson arrival distribution, and measures the number of transactions committed per second. The benchmark is run with 1, 2, 4, 8, 16, 32 and 64 connections. As shown in Figure 2, Turso's write throughput scales with the number of connections, while SQLite's does not. SQLite's throughput hovers around 1,370 transactions per second regardless of the number of connections, and is faster than Turso with a single connection. Turso overtakes it at 2 connections and reaches about 9,500 transactions per second at 64 connections, which is about 7x SQLite's throughput. #Other highlights: SQL features, FTS with MVCC, and query optimizer improvements Performance is the theme of this release, but a few other improvements are worth calling out. #SQL language features Turso now has complete support for window functions, and supports recursive queries: • Window functions rank(), dense_rank(), first_value(), last_value(), nth_value(), lag(), lead(), ntile(), cume_dist() and percent_rank() • Every window frame SQLite supports, with all ROWS, RANGE and GROUPS bounds and all EXCLUDE options • Recursive common table expressions with WITH RECURSIVE #Full-text search with MVCC Full-text search now works with MVCC, and its indexes got faster: • Transactional indexes that work with BEGIN CONCURRENT • Faster and leaner indexes • Index segments merged on the write path once there are enough of them, instead of piling up #Query optimizer improvements The query optimizer handles more queries efficiently, and shows more of what it decided: • Unnesting of more correlated subqueries, including ones that correlate on non-equality comparisons • Hash joins when an index cannot seek the join keys • Covering indexes with virtual generated columns and partial index predicates • NULLS FIRST and NULLS LAST in indexes • JSON output for EXPLAIN QUERY PLAN, including the optimizer's join estimates #Try Turso 0.8 Install the engine locally and try BEGIN CONCURRENT on your own workload: $ curl -sSL tur.so/install | sh Want to check our numbers? The benchmarks are open source, and the results in this post were measured at commit fd41c07dc against SQLite 3.50.2. We ran them on a desktop machine with a 12-core, 24-thread AMD Ryzen 9 3900XT, 64 GB of RAM, and a Kingston NV3 1 TB NVMe SSD with XFS, on Linux 7.2 (Fedora 44), with PRAGMA synchronous = FULL for both engines. Run them on your hardware and tell us what you find on Discord.
Original source - Sep 29, 2026
- Date parsed from source:Sep 29, 2026
- First seen by Releasebot:Nov 28, 2026
From v0.7 to v0.8: How group commit changed Turso's tail latency
Turso releases version 0.8 with group commit for MVCC, helping concurrent writes scale by sharing disk flushes across transactions. The update brings much lower tail latency and higher throughput, with MVCC available locally and in tech preview on Turso Cloud.
About a year after I joined, Pekka Enberg, Turso's CTO, handed me a barebones pull request for MVCC (multi-version concurrency control). It built on an open source MVCC experiment he had worked on with Piotr Sarna and Avinash Sajjanshetty, based on the research behind Hekaton, Microsoft's in-memory database engine. I suspect Pekka was also trying to cure me of a few stereotypically Spanish habits, like long naps and late breakfasts. I neither confirm nor deny indulging in either. Fittingly, the project turned out to be about keeping writers from sleeping on the job. Thankfully, I wasn't alone for long. Everyone on the Turso team and a lot of open source contributors helped bring MVCC to life, so much so that we've been able to shift our focus from reaching feature parity with SQLite to improving Turso's performance. With 0.8, Turso has much lower tail latency and higher throughput than SQLite under concurrent writes. You can see the full results in Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck. This post covers one piece of that work. In v0.7, BEGIN CONCURRENT already let Turso move past SQLite's single-writer limit, but concurrent writes didn't scale the way they should have. Group commit fixed that in v0.8. What a commit means in Turso's MVCC To see where commit time goes, it helps to know what a commit does. Here's the map. Turso's MVCC keeps recent row versions in memory, in a structure we call the MVStore. Rows live in a lock-free skip map that points each row ID to a list of that row's versions: SkipMap<Rowid, Mutex<RowVersions>> The skip map is lock-free, so transactions reading different rows never block each other. A naive design, such as a hash map behind one mutex, would make every reader wait for every other. Each row's version list does have its own lock, which matters later. Every transaction moves through a few states. While a transaction is Active, its changes are visible only to itself. Other transactions see a consistent snapshot of committed data, which is how we implemented snapshot isolation. An Active transaction can also abort, on ROLLBACK or an error. When it commits, the transaction moves to Preparing. Turso checks whether another transaction already committed a change to the same rows. If so, it aborts with a write-write conflict. If not, its changes are written to disk. Those changes go to a file called the logical log. It's similar to SQLite's write-ahead log (WAL), with one important difference. The WAL records whole pages, typically 4 KB each, so changing one row still writes an entire page. The logical log records only the rows a transaction changed: new rows, updates, and deletes (written as tombstones), with schema changes tracked separately. On restart, Turso replays the logical log to rebuild the in-memory state. The logical log can't grow forever, and memory is limited. So past a threshold, a checkpoint moves data into the regular SQLite-format database file, and garbage collection frees row versions nobody can see anymore. In short, committing a transaction takes two steps: 1. Write the transaction's rows to the logical log. 2. Fsync the logical log, so the data is actually on disk. The second step is where I went down a performance rabbit hole. Unlike most rabbit holes, this one led somewhere good. Figure 1 steps through that path in v0.7. A transaction does all its work in memory. The commit is the only place it touches the disk, and the disk is where the milliseconds are. Press play, or click details on any box. The v0.7 baseline: MVCC that didn't scale The whole point of MVCC is that write throughput should grow as you add concurrent writers. SQLite allows one writer at a time, so its throughput stays flat no matter how many connections you open. With BEGIN CONCURRENT, Turso lets transactions work in parallel, so more connections should mean more commits per second. In v0.7, that wasn't really happening. I noticed it while preparing for my upcoming P99 CONF talk, when I ran the write benchmarks Pekka had built. Adding connections didn't buy us nearly as much throughput as it should have. Those benchmarks are the same ones in the 0.8 release post. One is a closed-loop throughput run: each connection inserts 100 rows on disjoint keys, then immediately starts the next transaction. The other is an open-loop latency run: 1,000 transactions per second with Poisson arrivals, spread across 1, 8, 16, and 32 connections, measured from the moment a transaction is scheduled until it commits. SQLite stays flat on the first and grows a long tail on the second, because it has one writer. Turso in v0.7 should have climbed. It didn't. So I profiled it. The profiles showed where the time went: a large share of every commit was spent in fsync. You can see that in Figure 1 already. The fsync box is the only step measured in milliseconds. Everything else is microseconds. Figure 2 shows what that does when more than one connection reaches COMMIT at the same time. The bottleneck: every transaction paid for its own fsync Writing data to a file doesn't mean the data is on disk. When a write call returns, the data may still be sitting in the operating system's page cache or in the disk's own cache. If the machine loses power at that moment, the data is gone. A database that promises durability has to call fsync, which forces everything written so far onto stable storage, and wait for it to finish. That wait is expensive. Fsync is one of the slowest operations in the commit path, and it blocks the disk while it runs. In v0.7, every transaction did both steps on its own. With N transactions committing, that meant: 1. N writes to the logical log 2. N fsyncs The writes are genuinely per transaction: each one has its own rows to append. The fsyncs are different. Every fsync does the same thing, making the logical log durable up to that point. When many transactions commit at nearly the same moment, most of those fsyncs are redundant. One fsync after all their writes would make every one of them durable. So with more concurrent writers, we were queueing more and more identical, slow disk flushes. That's why adding connections didn't scale the way MVCC should. The fix: group commit The fix is a technique almost every serious database uses: group commit (or batch commit). Instead of each transaction flushing on its own, transactions that are committing at about the same time share one fsync. Group commit wasn't a new idea for us. I had tried implementing it a long time ago, but at the time fsync wasn't what limited us, so it added complexity without a clear payoff. It only became the right thing to build once the profiles showed fsync blocking the database from scaling. Here's how it works now in v0.8: 1. Transactions gather into a group. When a transaction reaches the Preparing state, it enqueues its log record and gets a ticket. There is no timer. Transactions that arrive while a flush is already running join the next group. 2. One transaction becomes the leader. The leader is not chosen. The first transaction to take the commit lock while the queue is non-empty becomes the leader and drives all writes and the fsync. 3. The leader does the disk work for everyone. It writes every queued transaction's rows to the logical log, then calls fsync once. 4. The others wait for the leader. The other transactions in the group park until the leader's fsync covers their ticket. Once it does, their data is durable, and each continues independently to finish its commit. Figure 3 is the same run as Figure 1, with the durable phase rewritten. One leader writes every queued record and flushes once. The others sleep until that flush covers them. The arithmetic is simple. For N transactions: v0.7: N writes, N fsyncs v0.8: N writes, 1 per group fsync The writes don't go away, because every transaction still has its own rows to append. But the slowest, most redundant step now happens once per group instead of once per transaction. Figure 4 puts the two commit paths on the same connections, with the same transaction durations. Only the commit path differs. Count the fsync blocks. The results: v0.7 versus v0.8 To measure the effect of group commit, I reran the transaction latency benchmark with three setups: SQLite, Turso v0.7 (without group commit), and Turso v0.8 (with group commit). The benchmark schedules 1,000 transactions per second with Poisson arrivals and measures each transaction from when it's scheduled until it commits, at 1, 8, 16 and 32 connections. The honest headline is that without group commit, Turso's MVCC had a far worse tail than SQLite. At every connection count, the slowest transactions took seconds, and at 32 connections the p99.9 reached 157 seconds. Allowing concurrent writes didn't help, because every transaction still waited on its own fsync. The numbers are this extreme because the benchmark offers a fixed load of 1,000 transactions per second. Paying one fsync per transaction, v0.7 couldn't keep up with that rate, so transactions queued, and each one's latency includes the time it spent waiting to start. You can see the backlog forming in the single-connection curve: about three-quarters of transactions finish quickly, then the rest stall for seconds. Adding connections made it worse, since more writers meant more fsyncs competing for the same disk. With group commit, every curve moves left by three to five orders of magnitude. Median latency sits around 1 ms at every connection count, and the p99.9 is lower than SQLite's in every configuration, from 14 ms at one connection down to 2.4 ms at 32. Why more connections means lower tail latency One result looks backwards at first: Turso's tail latency goes down as connections go up. At a single connection, p99.9 latency was 14 ms. At 32 connections, it was 2.4 ms. Group commit explains this. With few concurrent writers, groups are small, and each transaction still pays for something close to a full fsync. With many writers, each group holds more transactions, so the cost of one fsync is shared across more of them. The busier the database, the better group commit amortizes its most expensive step. The contrast with SQLite is even more impressive because, under the same load, SQLite's p99.9 grows from 73 ms at one connection to 1.2 s at 32, because writers back off and sleep while waiting for the single write lock. Where this works best The throughput benchmark writes to different rows in each transaction and that's deliberate: it's the workload we expect to be most common, and the one where Turso's MVCC works best. When transactions update the same row, two things go wrong. First, they contend on that row's lock in the MVStore, so they block each other. Second, at commit, all but the first fail with a write-write conflict and have to retry. We saw this with one user whose workload updated the same rows every few milliseconds, and MVCC wasn't a good fit for it (at least for now). The sweet spot is writing a lot of data where transactions mostly touch different rows. If your writers constantly fight over the same few rows, SQLite's single-writer model may serve you just as well. Try it out Install Turso locally and run BEGIN CONCURRENT on your own workload: $ curl -sSL tur.so/install | sh MVCC is also available in tech preview on Turso Cloud. The benchmarks are open source, so run them on your hardware and tell us what you find on Discord. If you want the rest of the story, including how MVCC works end to end, how we handle conflicts, and the hard parts of checkpointing, come to my talk, "Breaking SQLite's Single-Writer Bottleneck," at P99 CONF on October 21–22.
Original source - Sep 16, 2026
- Date parsed from source:Sep 16, 2026
- First seen by Releasebot:Nov 28, 2026
- Modified by Releasebot:Nov 28, 2026
Let your agents run free with Turso Accident Protection
Turso releases Accident Protection, letting users restore databases deleted while on a paid plan for up to five days at no extra cost. Recovery is available through the UI or Turso MCP server, helping protect against accidental deletions.
Agents delete things. Now you can undelete them. Restore databases for up to 5 days after deletion, on any paid plan, at no additional cost.
You know the feeling: you ask your favorite coding tool to perform an innocent task, and it decides that the best way to achieve that… is to delete your database. While this is not as bad as AI deciding that the best way to bring forth world peace is to erase the human race, Age of Ultron style (or Terminator, if you are as old as Glauber), it is still very annoying and can have destructive consequences for you, even if the rest of us keep doing fine.
To help you sleep at night, Turso is today releasing Accident Protection: for up to 5 days after the fact, databases can be restored. Accident Protection is available to any paid plans, at no additional cost.
Undelete your databases
Databases that were deleted when you were on a paid plan can be restored from the UI:
It is also possible to ask your favorite AI coding tool to undo their own mistakes (even though you might have told them to make no mistakes) in-session. The feature is available on the Turso MCP server:
Sign up today
Turso offers unlimited databases. If you need a database, you get a database: you and your agents never have to worry about the costs of that additional database. And now, you also don’t have to worry about accidents ruining the fun for you.
Sign up and upgrade to a paid plan today to start building with Turso.
Original source - Sep 2, 2026
- Date parsed from source:Sep 2, 2026
- First seen by Releasebot:Nov 28, 2026
Encrypting SQLite Databases with Turso: Local, Cloud, and BYOK
Turso explains its native SQLite encryption and cloud BYOK options, highlighting open-source local encryption, customer-controlled keys, benchmark results, and self-service BYOK availability on Pro plans and above.
How Turso's two encryption models work in practice: native encryption in the Rust engine and BYOK on Turso Cloud, with working code and real benchmark numbers. This is Part 2 of a three-part series on SQLite encryption. Part 1 covers the broader SQLite encryption options and how AEAD page-level encryption works. Part 3 covers key management, migration, and production deployment. Most SQLite encryption tutorials follow the same script. Generate a key. Set a PRAGMA. Open the database. Done. Encryption becomes a configuration detail, something that happens behind a function call you don't need to think about. That framing hides the questions that actually matter. Who holds the key? Is the encryption implementation auditable? What happens if the provider's storage is breached? Can you prove to an auditor that the database vendor never had access to plaintext? Our approach to SQLite encryption is different from the extension-based solutions covered in Part 1, and it's different in two specific ways worth understanding before you write a line of code. First, encryption in Turso Database is native to the Rust engine. Not an extension bolted onto SQLite's C codebase via a hook API. The encryption code lives in the same Rust codebase as the rest of the database, it's open source under the MIT license, and you can read every line of it. This is a meaningful difference from SEE (proprietary, no source access without a $2,000 license) and from the extension-based architecture that SQLCipher and SQLite3MultipleCiphers use. Second, Turso Cloud's BYOK (Bring Your Own Key) model is designed so that Turso never stores your encryption key. You supply the key per connection. It exists in memory only while your query is being processed. It's never written to disk, never included in logs, never persisted to any storage layer. The practical implication: if Turso's storage infrastructure is compromised, an attacker gets ciphertext and no keys. That's the architecture. This article shows how it actually works, with code you can run, benchmark numbers you can reference, and clear guidance on when each model is the right fit. Two Models, Two Use Cases Turso offers two distinct encryption models. They serve different deployment contexts, use different key formats, and have different maturity levels. Conflating them is a real source of confusion, so let's separate them clearly. Turso Database is the local and edge engine. It's a complete rewrite of SQLite in Rust, open source under the MIT license. Encryption requires the --experimental-encryption flag. Keys are hex-encoded. This is the right choice for local apps, offline-first architectures, development environments, and edge deployments where the database lives on hardware you control (or don't). Turso Cloud BYOK is the cloud-hosted offering. Encryption is production-ready on Pro plan and above (self-service availability since February 2026, previously Enterprise-only). Keys are base64-encoded. Turso never stores the key. This is the right choice for cloud-deployed applications, multi-tenant SaaS, and compliance-sensitive workloads. The key format difference trips people up. Turso Database uses hex: openssl rand -hex 32. Turso Cloud uses base64: openssl rand -base64 32. If you generate a key in the wrong format, you'll get an error that doesn't immediately tell you what went wrong. Keep this distinction in mind as you read the sections below. Turso Database: Native Encryption What "native" means Encryption in Turso Database is implemented in Rust within the database engine itself. It's not a separate extension loaded at runtime, and it doesn't depend on a hook API that could be removed (as happened with SQLITE_HAS_CODEC in 2020). The encryption code is part of the same codebase that handles page I/O, which means it's integrated at the level where pages are read from and written to disk. The entire codebase is MIT-licensed and on GitHub. If your security team wants to audit the encryption implementation, they can. That's a concrete advantage over proprietary options like SEE, where you need to buy a license before you can see the source. The experimental flag The --experimental-encryption flag is required. It signals that this feature has not yet been through a formal third-party security audit. The implementation works, the benchmarks are published, and the code is open source and readable. We're being straightforward about where things stand in the maturity cycle. For development, local apps, prototyping, and non-critical workloads, it's a solid option. For production deployments handling sensitive data, Turso Cloud BYOK is the production-ready path until the experimental designation is lifted. If you're in a compliance review, your auditor will likely ask the same question. Creating an encrypted database Generate a 256-bit key in hex format: openssl rand -hex 32 Store this key securely. Do not hardcode it. Do not commit it to version control. Create a new encrypted database: tursodb --experimental-encryption \ "file:myapp.db?cipher=aegis256&hexkey=YOUR_HEX_KEY" Open an existing encrypted database with the same syntax: tursodb --experimental-encryption \ "file:myapp.db?cipher=aegis256&hexkey=YOUR_HEX_KEY" From here, it's just SQL. Encryption is transparent to your queries: CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, email TEXT); INSERT INTO users VALUES (1, 'Alice', '[email protected]'); SELECT * FROM users; Every page of the database file is encrypted on disk. The WAL file is encrypted too. If someone copies the file without the key, they get random-looking bytes. The key exists only in memory during the session and must be provided each time you open the database. Open the same file with the wrong key and you get an explicit decryption error, not garbage data. That's the AEAD authentication tag doing its job. Cipher options Turso Database supports two cipher families locally: AEGIS (recommended for most workloads): aegis256 is the default recommendation, with a 256-bit key and 256-bit nonce. aegis128l uses a 128-bit key and offers faster throughput. The parallel variants (aegis256x2, aegis256x4, aegis128x2, aegis128x4) are optimized for CPUs with 256-bit or 512-bit SIMD registers. AES-GCM (for compliance requirements): aes256gcm and aes128gcm are NIST-approved and recognized by compliance frameworks. If your auditor needs to check a box that says "NIST-approved cipher," these are the options. No ChaCha20-Poly1305 support in the local engine. That cipher is available only in Turso Cloud. Performance We published benchmarks in the encryption announcement using AEGIS-256 with a 75/25 read/write split across varying database sizes. The headline numbers: • Mixed workload total overhead: 0.5% to 2.8% • Read overhead: 0.2% at 100K rows, scaling to 5.5% at 15M rows • Write overhead: approximately 9% to 14% across database sizes The full benchmark table with methodology is in the announcement post. The benchmark code is publicly available if you want to run it on your own hardware. For most applications, this overhead is not the bottleneck. A mobile app doing CRUD operations won't notice. An API server will see the encryption cost absorbed by network latency and application logic. Even batch processing with large databases shows less than 3% total time increase on mixed workloads. Write-heavy operations carry the highest relative cost (up to ~14%), but in absolute terms, we're talking about microseconds per operation. Turso Cloud BYOK The BYOK model All Turso Cloud databases are already encrypted at the volume level as part of SOC2 Type II compliance. BYOK is an additional layer on top of that, and the critical difference is who controls the key. With volume-level encryption, Turso manages the keys. With BYOK, you generate the key, you store it in your secret manager, and you supply it per connection. Turso never stores it. This is verifiable from the architecture: the key is passed as a connection parameter, held in memory during query processing, and discarded when the connection closes. It's never written to disk on Turso's infrastructure. BYOK encryption is available on Pro plan and above for self-service customers as of February 2026. Previously, it required an Enterprise plan. CLI workflow Generate a key in base64 format (not hex, this is Turso Cloud): openssl rand -base64 32 Create an encrypted cloud database: turso db create my-encrypted-db \ --remote-encryption-key "YOUR_BASE64_KEY" \ --remote-encryption-cipher aegis256 If your account has more than one database group, add --group <name> to pick where it lives. Connect with the key: turso db shell my-encrypted-db \ --remote-encryption-key "YOUR_BASE64_KEY" Try connecting without the key and you get encrypted data. No plaintext access. SDK integration This is the code most of you will actually use. In TypeScript/JavaScript with the @tursodatabase/serverless driver: import { connect } from "@tursodatabase/serverless"; const conn = connect({ url: "https://my-encrypted-db-myorg.turso.io", authToken: process.env.TURSO_AUTH_TOKEN, remoteEncryptionKey: process.env.TURSO_ENCRYPTION_KEY,}); // Encryption is transparent. Use it like any database connection. const stmt = await conn.prepare("SELECT * FROM users WHERE id = ?"); const user = await stmt.get([userId]); The remoteEncryptionKey field is all that's needed. The cipher is not part of the connection: it was fixed when the database was created. The key comes from your environment variables, your vault, your secret manager. Not from Turso. Supported ciphers Turso Cloud supports three cipher families: • AEGIS: aegis256, aegis128l (recommended for performance) • AES-GCM: aes256gcm, aes128gcm (recommended for compliance) • ChaCha20-Poly1305: chacha20poly1305 (software-optimized, for environments without hardware AES support) ChaCha20-Poly1305 is only available in Turso Cloud. If you need it locally, it's not an option in Turso Database today. Cloud features that work with encrypted databases Encrypted databases in Turso Cloud support branching, point-in-time recovery, and sync to embedded replicas. One thing to know about branching: when you create a branch of an encrypted database, you must supply the same encryption key used for the parent. The branch inherits the cipher and key. You can't branch with a different key. Multi-Tenant Cryptographic Isolation This is where Turso's architecture enables something that's genuinely hard to do with other SQLite encryption solutions. Because Turso Cloud supports creating an effectively unlimited number of individual databases with no meaningful per-database overhead, you can provision one encrypted database per customer, each with its own unique key. This is not row-level access control, which depends on application logic and can be bypassed with sufficient privileges. It's not a shared database with per-tenant key management layered on top. It's actual cryptographic isolation: separate databases, separate keys, separate ciphertext. If Customer A's key is compromised, Customer B's data is unaffected. The databases are encrypted with different keys. There is no shared secret. There is no single key that unlocks everything. Here's what provisioning looks like at customer onboarding: import { connect } from "@tursodatabase/serverless"; async function provisionCustomerDatabase(customerId: string, vault: SecretManager) { // Generate a unique key for this customer const keyBytes = crypto.getRandomValues(new Uint8Array(32)); const customerKey = Buffer.from(keyBytes).toString("base64"); // Store the key in your secret manager, not in any database await vault.setSecret(`encryption-key-${customerId}`, customerKey); // Create the customer's encrypted database via the Turso Platform API or CLI. // tursoAdmin.createDatabase() is pseudocode; see the Turso Platform API docs // for the actual call. await tursoAdmin.createDatabase({ name: `customer-${customerId}`, encryptionKey: customerKey, encryptionCipher: "aegis256",}); return connect({ url: `https://customer-${customerId}-myorg.turso.io`, authToken: process.env.TURSO_AUTH_TOKEN, remoteEncryptionKey: customerKey,}); } For security auditors, the story is straightforward: each tenant's data is encrypted at rest with a key that only that tenant (or your application acting on their behalf) controls. Turso never sees the plaintext. The key never touches Turso's storage. And because each tenant is a separate database rather than rows in a shared table, there's no risk of a query bug or permission misconfiguration leaking data across tenant boundaries. This pattern works well for SaaS applications handling sensitive data, AI agent platforms that manage per-user data, and any architecture where a breach of one customer's credentials should not cascade to other customers. Poke does exactly this, giving every user their own database. Cipher Selection Guide Picking a cipher shouldn't require a research project. Here's the decision in a table: Cipher | Use When | Key Size | Availability | Standards Status aegis256 | Most workloads; best performance on modern hardware | 256-bit | Local + Cloud | IRTF informational RFC, in review aegis128l | Want faster throughput, 128-bit key is acceptable | 128-bit | Local + Cloud | Same as above aes256gcm | Compliance requires NIST-approved cipher (HIPAA, PCI-DSS, SOC2) | 256-bit | Local + Cloud | NIST-approved. Auditors know it. aes128gcm | Compliance context, 128-bit key is acceptable | 128-bit | Local + Cloud | NIST-approved chacha20poly1305 | No hardware AES support (older mobile, some IoT/embedded) | 256-bit | Cloud only | IETF standard (RFC 8439) The short version: If your auditor needs to recognize the cipher name, use aes256gcm. It's NIST-approved, well-understood, and you won't spend time in a compliance review explaining what AEGIS is. The performance difference compared to AEGIS is real but not meaningful for most workloads. If you have freedom to choose, use aegis256. It's faster on modern hardware with AES instructions, it uses 256-bit nonces (which virtually eliminates nonce collision risk), and it's built on the AES round function. AEGIS is an IRTF informational RFC currently in final review at the RFC Editor (draft-irtf-cfrg-aegis-aead-18). IANA has already assigned algorithm IDs. But it is a proposed standard, not finalized, and it is not a NIST-approved standard. That distinction matters if you're checking compliance boxes. If you're targeting hardware without AES instructions, use chacha20poly1305. It's software-optimized and performs well on older ARM chips and embedded systems. Note that it's only available in Turso Cloud, not in the local Turso Database engine. Key Rotation: Current State Native rekeying (changing the encryption key of an existing database in place) is not yet supported in either Turso Database or Turso Cloud. Both list it as a planned feature in the documentation. The current workaround is export and reimport: # Export with old key turso db shell my-db --remote-encryption-key "${OLD_KEY}" .dump > export.sql # Create new database with new key turso db create my-db-rekeyed \ --remote-encryption-key "${NEW_KEY}" \ --remote-encryption-cipher aegis256 # Import turso db shell my-db-rekeyed --remote-encryption-key "${NEW_KEY}" < export.sql This works but requires downtime and careful coordination. Encrypting existing unencrypted databases in place is also planned but not yet available. For now, adding encryption to an existing database means the same export/import cycle. Where to Go from Here If you landed on this article directly and want the broader context on SQLite encryption options, how AEAD page-level encryption works at the architecture level, or how Turso compares to SQLCipher and SEE, Part 1 covers all of that. It's useful background if you're evaluating whether Turso is the right fit before committing. If you've got encryption working and you're thinking about production deployment, Part 3 is where the operational questions live: key management practices (where to store keys, how to handle rotation schedules), migrating from SQLCipher or unencrypted SQLite, compliance documentation for SOC2/HIPAA/PCI-DSS audits, and real-world deployment patterns for AI agents, fintech, and healthcare. Part 3 is the next read.
Original source
This is the end. You've seen all the release notes in this feed!
Curated by the Releasebot team
Releasebot is an aggregator of official release notes from hundreds of software vendors and thousands of sources.
Our editorial process involves the manual review and audit of release notes procured with the help of automated systems.