Back to blog
October 26, 2026multi-tenancypostgres

Row-level multi-tenancy with org_id

Data isolation without one database per customer.

Why row-level

One database per customer scales poorly in operations. In Boileryx every business table has an org_id column and the tenant context is resolved on every request.

How it works

  • The subdomain or custom domain identifies the organization
  • A middleware sets the tenant context
  • Services always filter by org_id

What you get

A single database, one set of migrations and simple backups, with data isolated between organizations.