---
title: "A database per agent: how Turso and Neon give different answers"
description: "Neon and Turso both support a database per agent but differ in the unit: Neon gives each agent a Postgres project with its own autoscaling compute that suspends after 5 minutes idle and is billed by CU-hour, while Turso treats each SQLite-compatible database as a file managed by a shared server, billed by rows read/written and storage with unlimited databases on paid plans."
url: "https://swe.quest/articles/a-database-per-agent-how-turso-and-neon-give-different-answers-05d4b7fddc0c2ee5"
canonical: "https://turso.tech/blog/a-database-per-agent-how-turso-and-neon-give-different-answers"
source: "Turso"
published: "2026-11-12"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 10
tags: ["multi-tenancy","databases","ai-agents","sqlite","postgres"]
---

# A database per agent: how Turso and Neon give different answers

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-11-12, 10 min read, Opinion. Original: [https://turso.tech/blog/a-database-per-agent-how-turso-and-neon-give-different-answers](https://turso.tech/blog/a-database-per-agent-how-turso-and-neon-give-different-answers)

## Summary

Neon and Turso both support a database per agent but differ in the unit: Neon gives each agent a Postgres project with its own autoscaling compute that suspends after 5 minutes idle and is billed by CU-hour, while Turso treats each SQLite-compatible database as a file managed by a shared server, billed by rows read/written and storage with unlimited databases on paid plans. For bursty agent workloads with many mostly idle databases, Turso avoids per-database compute clocks and adds per-database BYOK encryption, BYOC, on-device sync, and BEGIN CONCURRENT writes (about 9,500 TPS at 64 connections in 0.8). Neon remains better for branching a full production backend per agent, and Supabase Postgres is the recommended fit for Postgres-specific needs or storage-heavy, rarely queried data.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- Postgres basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- multi-tenant architectures

## Keywords

Turso, Neon, Supabase, SQLite, Turso Sync, BEGIN CONCURRENT, Spark

## Related posts

- [Building AI Agent Databases: A Complete Guide to Database-per-Agent Architecture](https://swe.quest/articles/building-ai-agent-databases-a-complete-guide-to-database-per-agent-architecture-e621ee857e5a5f4f.md): Turso · 2026-07-20 · Medium · 7 min read · Multi-tenancy, AI agents, SQLite, Local-first & sync, Vector search
  Giving each AI agent its own SQLite-style database, instead of sharing tables keyed by tenant\_id or using schema-per-tenant, makes isolation, debugging and cleanup trivial: deleting an agent is a single API call.
- [2 million databases and counting: the architecture behind Sauna's AI teammate](https://swe.quest/articles/2-million-databases-and-counting-the-architecture-behind-sauna-s-ai-teammate-ca635665d8781bf3.md): Turso · 2026-11-03 · Easy · 8 min read · SQLite, Multi-tenancy, Replication, AI agents, System design
  Sauna, a proactive AI work assistant, gives every session, agent and connected inbox or calendar its own Turso database, creating about 90,000 databases a day and over 2 million in total.
- [Databases as Variables: What Unlimited Databases Actually Changes](https://swe.quest/articles/databases-as-variables-what-unlimited-databases-actually-changes-a5697bc287b26b2b.md): Turso · 2026-10-30 · Medium · 9 min read · Multi-tenancy, SQLite, System design, Schema migrations, Databases
  Turso Cloud's paid plans no longer meter active databases, so a database costs only its storage while idle.
- [Inside LuBot's database-per-tenant architecture](https://swe.quest/articles/inside-lubot-s-database-per-tenant-architecture-3e140bf0d5ffcd96.md): Neon · 2026-09-14 · Medium · 5 min read · Multi-tenancy, PostgreSQL, Serverless, System design
  LuBot, a solo-founder analytics chat product, gives each paying customer an isolated Postgres database by creating a Neon branch from a Stripe webhook, with Supabase kept as the control plane for orgs, users and billing.
- [One Postgres, a database per user, or both?](https://swe.quest/articles/one-postgres-a-database-per-user-or-both-3df8849f282fa457.md): Turso · 2026-11-25 · Easy · 10 min read · Multi-tenancy, Local-first & sync, System design, SQLite, PostgreSQL
  Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
