-
Notifications
You must be signed in to change notification settings - Fork 81
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
Maintain historic rate conversions #55
Comments
I can't help but feel you should store the conversion at that time in your application? |
I've done that, storing the original transaction currency and the converted to uniform currency I want for other operations. But then I felt that I kept the rate in disguise and denormalized among all the transactions, where the same rate info matched the date for all those. Being able to specify the rate for a date range would have saved me from storing converted values, but then again, I can understand the querying for that join of multiple ranges would be quite a headache, but I could still use the converted rate as a proper denormalized value and keep the historic rate info as source of truth. It's just a nice to have, I can perfectly keep finding ad-hoc tailored solutions on each use case. |
So modifying the model (or adding a new one more likely) to allow storing historical rates would not be a trivial task, and I don't believe is really the intention of the project or would be used that much, especially since it sounds like this would largely be a double-check for the data you already have stored. |
When keeping historic data it is necessary to keep the rate at which an operation was made so we don't do past conversions using current rates.
I normally handle this outside of the
currencies
app, but I lose the ability to use itsconvert
util.The text was updated successfully, but these errors were encountered: