Skip to content
Snippets Groups Projects
  • Daniele Nicolodi's avatar
    6417c379
    balance: Rewrite without abusing BQL queries · 6417c379
    Daniele Nicolodi authored
    Cumulative balances are more efficiently obtained adding to account
    inventories while iterating one time through the ledger transactions.
    The only subtlety is that, because inventory objects are mutable,
    intermediate inventories need to be copied when are emitted or will be
    overwritten when subsequent transactions are added.
    6417c379
    History
    balance: Rewrite without abusing BQL queries
    Daniele Nicolodi authored
    Cumulative balances are more efficiently obtained adding to account
    inventories while iterating one time through the ledger transactions.
    The only subtlety is that, because inventory objects are mutable,
    intermediate inventories need to be copied when are emitted or will be
    overwritten when subsequent transactions are added.