When to Use One Postgres Database, a Database per User, or Both
Brief
The choice depends on where data lives, who it belongs to, and whether features need to read across users.
A practical starting point
- For most early-stage web apps, start with one Supabase Postgres database; adding another database brings extra code and failure points before it is needed.
- Consider a Turso database per user when the app needs local data, offline access, desktop support, or user-specific data isolation.
When to combine them
- Use Supabase for accounts, authentication, authorization, file storage, and project-level data; keep each user's data in that user's Turso database.
- Cross-user features require querying multiple databases or copying data into a central database. If shared-data queries are frequent, consider aggregation into a central database.
- Turso Cloud's free plan includes 100 databases and does not require a credit card.
Generated by AI from the original article. Check the source for full details.