Hacker News new | ask | show | jobs
by brightball 1147 days ago
There’s so much value in database triggers when they’re done right. Anything where live stats are needed gets a whole lot easier with triggers rather than counts.
1 comments

Then you discover Materialised Views... :) Magic.
Just wait until we get Incremental Materialized Views!
I was gonna mention that as well. There's a relevant talk from the System distributed convention https://www.youtube.com/watch?v=QtQMWUik0oY It's about caching views or queries and updating them when necessary as well as keeping your cache and DB in sync automatically.
Oracle has done them for 20+ years.