Re:Denormalization for Performance: Don't Blame the Relation...
by xiphias on Wednesday October 19, 2016 @01:38AM
(#12741346)
If you write often, another way is to use triggers. They can be extremely useful for this kind of scenerio.
[ Parent
| on HN ]
Re:Denormalization for Performance: Don't Blame the Relation...
by sp527 on Wednesday October 19, 2016 @02:28AM
(#12741561)
Agreed. Triggers are especially useful for maintaining counts. If you want to feel extra smug, there's a post from Instagram eng about how they realized they should denormalize counts of likes only pretty late in the game.