---
title: "One Postgres, a database per user, or both?"
description: "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."
url: "https://swe.quest/articles/one-postgres-a-database-per-user-or-both-3df8849f282fa457"
canonical: "https://turso.tech/blog/one-postgres-a-database-per-user-or-both"
source: "Turso"
published: "2026-11-25"
difficulty: "easy"
kind: "Case study"
reading_minutes: 10
tags: ["multi-tenancy","local-first","system-design","sqlite","postgres"]
---

# One Postgres, a database per user, or both?

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-11-25, 10 min read, Case study. Original: [https://turso.tech/blog/one-postgres-a-database-per-user-or-both](https://turso.tech/blog/one-postgres-a-database-per-user-or-both)

## Summary

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. Early-stage web apps default to a single Supabase Postgres with row-level security and a self-hosting exit. Local-first apps like Sample Vault give each user a Turso database synced to their machine, which provides isolation by construction and data ownership if the product disappears. Hybrid apps use Supabase to govern accounts, auth and storage while per-user Turso databases hold user data. Because database-per-user is "a bet against cross-user features", teams should list every cross-user read before adopting it; the agent delegation case shows the cost, since delegated tasks must be copied into a central database.

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)
- [Local-first & sync](https://swe.quest/tags/local-first.md) (Architecture & design)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- relational databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- row-level security ([easy posts on Security](https://swe.quest/tags/security.md?difficulty=easy))

## Keywords

Turso, Supabase, Sample Vault, Turso Sync, PGlite, Tauri, Cerbos, Turso Cloud BYOC

## Related posts

- [Multi-tenancy and Database-per-User Design in Postgres](https://swe.quest/articles/multi-tenancy-and-database-per-user-design-in-postgres-5cbc5e19177ab4be.md): Neon · 2024-08-29 · Easy · 7 min read · Multi-tenancy, PostgreSQL, System design
  Postgres multi-tenancy comes in three main designs: shared schema, schema-per-user and database-per-user.
- [Database-per-User Architecture With Shared Application Environments: How and Why](https://swe.quest/articles/database-per-user-architecture-with-shared-application-environments-how-and-why-75dc31cab7b5ea77.md): Neon · 2024-10-18 · Medium · 8 min read · Multi-tenancy, PostgreSQL, System design, Schema migrations
  A single shared application environment serving many per-customer Neon Postgres databases keeps deployment simple, but every tenant database must stay at the same schema version and data residency is hard to offer.
- [A database per agent: how Turso and Neon give different answers](https://swe.quest/articles/a-database-per-agent-how-turso-and-neon-give-different-answers-05d4b7fddc0c2ee5.md): Turso · 2026-11-12 · Easy · 10 min read · Multi-tenancy, Databases, AI agents, SQLite, PostgreSQL
  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.
- [The Many-Database Architecture: Should You Give Every Tenant Their Own Database?](https://swe.quest/articles/the-many-database-architecture-should-you-give-every-tenant-their-own-database-8b8e22af8a8401bd.md): Turso · 2026-10-14 · Medium · 8 min read · Multi-tenancy, SQLite, System design, Databases, Privacy
  Shared schema with row-level security, schema per tenant, and database per tenant trade off isolation strength against operational cost.
- [Multi-tenancy at Scale: How to Give Every User Their Own Database](https://swe.quest/articles/multi-tenancy-at-scale-how-to-give-every-user-their-own-database-68099102015dea58.md): Turso · 2026-08-17 · Medium · 7 min read · Multi-tenancy, SQLite, System design, Cost optimization, TypeScript
  The standard warning against database-per-tenant assumes each database is a server process like PostgreSQL or MySQL, with its own memory, connection pool and backup schedule.

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)
