ollieread.com Newsletter logo

ollieread.com Newsletter

Archives
Subscribe
June 30, 2026

You probably don't need a database per tenant

Most of the advice, tutorials, and packages you’ll see for multitenancy, push the idea that to implement it properly, you need to have a database per tenant. That’s simply not true, and it’s more often than not, a more costly and complex approach for something you can achieve with something much simpler.

So, naturally, to help illustrate this point, I’ve written a full explanation on the full data-isolation spectrum. Every approach is covered, as well as how they stack up against each other, and behavioural differences between PostgreSQL, MySQL/MariaDB and SQLite.

If I’m being honest, PostgreSQL and RLS (row-level-security) is almost always your best option.

You probably don't need a database per tenant - An explainer for multitenanted data isolation in web applications
Don't miss what's next. Subscribe to ollieread.com Newsletter:
Older → Hello all, it's about time I used this!
Share this email:
Share on Twitter Share on LinkedIn Share on Threads Share on Reddit Share on Mastodon Share on Bluesky
GitHub
Bluesky
Twitter
Powered by Buttondown, the easiest way to start and grow your newsletter.