3 ms·
You can use abstractions that push such code out of the developers concern, into the "code infrastructure" layer. But there are also plenty times where I'd rat
by GordonS 7y ago
You can use abstractions that push such code out of the developers concern, into the "code infrastructure" layer.
But there are also plenty times where I'd rather compute at the database side; there are no silver bullets.
- magicalhippo 7y agoAnd then someone at support comes along and updates the data via SQL and forgets to update the derivative field because he got woken up at 2am for an emergency. Using a computed column ensures the data is consistent.