Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At a certain scale they'd be sharded and not on a single instance anyway, right?


Even then, you do want to provide some degree of hardware-adjacent isolation to limit not just the blast radius but also computational cost of some DDL operations in a multi-tenant setup.

For example, you generally only want to have one tenant’s data per storage page. There are many famous ways that interleaving different tenants’ data at a fine-grained level can go very wrong.


Aggregating all tenants into the same tables could provide you with much more robust statistics for the query planner to use.

There are also advantages from a cache utilization standpoint if the system is heavily loaded.


Having tenants in the same tables is compatible with their data being on separate pages.


I am arguing for the I/O benefit of sharing pages between tenants.

I understand there are potential regulatory concerns with this, but I've never seen an audit get even remotely close to this level of detail.


somewhere only in one place there will be main index with at least references to locations where to find others. at the top somewhere there is always just a flat list. this is a multi-dimensional problem. i really want to know real life scenario someone arguing for or against this. really interested to see what side people pick and where they draw the line of what it means to be multi-tenant. personally, i will never again write multi-tenant code ever again in my life. the implementation i've modeled for myself because i understood that immediate backup and restore is more important than fancy multi-tenancy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: