I am creating an application that stores financial information of users in a sqlite database. I want him to store all the information, such as account number, bank name, interest rates, etc.
I wanted to ask how the following is done in real financial software. As an example, when someone requests data from a database through software, the software simply goes and retrieves the data, or the software goes and gets the basic information, and then calculates the data in place.
If we want to see the payment amount, and we know that this is a certain percentage, we store the payment amount in a table or simply calculate it on the spot.
If I would like to query the database for the total accrued interest, I store this data in a table or compute it in place.
I just have problems understanding that itβs better to keep the database table simple and do most of the calculations in place, or to store more data in the table, and the software fills it in the background.
finance
Recursion
source share