You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can improve the speed of calculations as follows:
Research if we can use shopspring.decimal together with storing numbers as int only (probably by storing the exponent separately or even using fixed point?)
If not:
Store numbers as integers only
Then, calculations can be done by the database with e.g. SUM() operations and the results only need to be transformed. This should increase performance by enabling us to use fewer queries, e.g. when calculating the month sums
The text was updated successfully, but these errors were encountered:
We can improve the speed of calculations as follows:
If not:
Then, calculations can be done by the database with e.g.
SUM()
operations and the results only need to be transformed. This should increase performance by enabling us to use fewer queries, e.g. when calculating the month sumsThe text was updated successfully, but these errors were encountered: