Replies: 1 comment
-
You are right, and it may be a bit more complicated than that. Few things to consider:
I did had a similar thing on a different project and my solution was to handle everything via Time Series So at the end, you end up with two collections:
After that, its fairly easy to compare the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Every user would have a number of transactions which would results in that users holdings. Do we want to save only the transactions and calculate the holdings or do we want to regenerate the holdings each time a transaction is made?
With possibly thousands of transactions it would be very ineffiecent to calculate the holding every time, but with generating them at a fixed time, we do not have a single source of truth, which could eventually lead to an inconsistent state.
Beta Was this translation helpful? Give feedback.
All reactions