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

One table or schema per customer is possibly a valid model for segregation in a multi tenant system. I’ve never felt the need to do it before, but maybe it could work, if you squint?


If you never touch the schema in any way, perhaps...? It sounds like an operational nightmare otherwise.


I have read about table inheritance but never used it. It seems like it would make it possible to alter the schema of the root table, but it probably introduces other issues that I am not aware of. You would still need to manage indexes, constraints and default values for each child table, but the structure of the table itself would be inherited.


But the advantages are - better for compliance, faster analytical queries, possible to upgrade people at different paces. I agree it would be painful from a database migration perspective but I can see situations where it might be the right call.




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

Search: