Skip to content

Improve speed of calculations #927

@morremeyer

Description

@morremeyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions