Isaac
Lifelong Learner
- Local time
- Yesterday, 16:16
- Joined
- Mar 14, 2017
- Messages
- 10,155
I could go either way. With large enough volumes, it might actually make sense to store the previous meter reading on the current record rather than re-querying it every time. It's all about efficiency, and sometimes, it does make more sense to store the calculation rather than re-calculate it millions of times. It just depends on the situation, the scale/volume, and how many places that 'previous' needs to be recalculated.
If, out in the real world, no datamart or data architect ever stored calculated values, then you would be hardpressed to make a useable datamart out of any enterprise with millions or billions of records - and those dashboards would run awfully slow..
I'm on board with the rule, but not when we reflexively apply it with no exception, that's all.
If, out in the real world, no datamart or data architect ever stored calculated values, then you would be hardpressed to make a useable datamart out of any enterprise with millions or billions of records - and those dashboards would run awfully slow..
I'm on board with the rule, but not when we reflexively apply it with no exception, that's all.