Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve speed of calculations #927

Open
morremeyer opened this issue Jan 3, 2024 · 0 comments
Open

Improve speed of calculations #927

morremeyer opened this issue Jan 3, 2024 · 0 comments

Comments

@morremeyer
Copy link
Member

morremeyer commented Jan 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant