2 ms·
I’m finally waking up to how great views are for building abstractions within the database. They’re not as versatile as actual code, but still worth thinking ab
by physicles 1y ago
I’m finally waking up to how great views are for building abstractions within the database. They’re not as versatile as actual code, but still worth thinking about.
Triggers, however… as the years have gone by, I like triggers less and less. Triggers for complex validation are ok, but triggers that mutate data are a code smell. Our database contains some triggers that denormalize data to make some queries faster, and they’ve proven to be an endless source of problems.
- codeulike 1y agoI use sql, views, sps and sql functions a lot but wouldnt touch database triggers with a bargepole I totally agree there