Re:Immutability is not enough (2016)
by hinkley on Saturday June 26, 2021 @04:03PM
(#27645317)
Only if your logic is all stored procedures. It doesn’t matter what the database says if you mangle the read operation.
[ Parent
| on HN ]
Re:Immutability is not enough (2016)
by hypertele-Xii on Saturday June 26, 2021 @04:36PM
(#27645597)
What if the database itself contained all business logic? (but no plumbing)
Every table has a function that is the only function that can write/insert into that table. The functions themselves are just records in a specific table, which the database schedules to run based on global access activity (it prefers to prioritize functions that consume more records than they produce, to keep space tight).