News for hackers. Stuff that matters.
Re:We do not use foreign keys (2016) by Volundr on Saturday November 09, 2019 @04:09PM (#21494368)
Also worth noting here, if you ARE updating the primary key on the referenced table, then locks MUST be taken to ensure data consistency. If that PK isn't locked, than by the very problem definition you have open transactions relying on the original PK value.

Those locks would be very challenging to accomplish at the application level.

There are no comments on this comment yet.