|
|
|
|
|
by bvrmn
566 days ago
|
|
As I understand parent comment it assumes following transaction records: (source_account, dest_account, amount). I argue it complicates things. You talk more about how to make db data simultaneously a representation of final reports. I believe it's not related to this thread. |
|
It is definitely possible to make each side of transaction a different record, but you have to link them, so there would be another ID for a transaction to group later. It is always there in any case, but you are either joining while getting a balance or grouping while reconstructing transactions for reports. So, it depends on the primary load: lots of transactions to register or lots of reports to provide. Both are used.