I see, thanks. Basically just store the foreign keys yourself as columns in relevant tables and perform the joins in SQL without having the DB enforce FK integrity with every insertion/update/delete. Would it be fair to say that read speeds are unaffected by this?
Re:Scaling Databases at Activision [pdf]
by berkle4455 on Friday April 21, 2023 @05:53PM
(#35660729)
Yes. Quite literally the only difference is not enabling foreign key constraints.
Read speeds unaffected correct.
>It slows everything down dramatically
How slower is it really? MySQL automically creates indexes for foreign keys so I don't think it slows down "dramatically", just an additional indexed retrieval?
Do you know of any benchmarks which show the difference?
Enabling RDBMS-enforced foreign key constraints is the issue. It slows everything down dramatically.