News for hackers. Stuff that matters.
Re:Ask HN: How to better implement a deposit/withdrawal trac... by zeuch on Monday May 30, 2022 @09:23AM (#31558689)
Another way is maintaining the final balance field for the readings. Every new transaction you save it into the transactions table and adjust the balance field as well.

You can have a job to go through the transactions from time to time to save important balances that user would need (e.g: daily, monthly and quarterly balances).

There are no comments on this comment yet.