Comment

Comment by magicalhippo

We do a variant of this across all our tables. If we have a parent-child-child relationship, then all child tables, regardless of depth, will have the parent id.

This way we can load up all the data needed to process an order or invoice etc easily, without a ton of joins.

We don't do multi-tenant, instead separate databases per tenant so far.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton