Re:Ask HN: Has anybody shipped a web app at scale with 1 DB ...
by lurker213 on Tuesday May 26, 2020 @09:15AM
(#23310703)
I like having one DB and defining RLS rules (in postgresql) for the majority of my tables. I also have all 'business entity' tables relate back to one table called records, which has a tenant_id on it and timestamps on it. This way I can keep FK constraints without doing the silly polymorphic rails model stuff.
[ Parent
| on HN ]
There are no comments on this comment yet.