I'm trying to design database structure for personal finance application.
Basically I'll have Transactions table, which would store expenses and incomes, besides that I'd like to have another table (I suppose Budget table) to store current balance.
Is it right approach to store current balance and updating it every time I have to insert a row into Transactions ?
Maybe it's better to calculate it according to transaction type (expenses or incomes)?
There's a similar question here , but I suppose there are better ways to deal with this kind of data.
I suppose that there is no best practice and it almost always depends, but which db structure should I choose?
Thanks.