3 ms·
> Is there a standard strategy for optimizing balance queries against a series of transactions? Nope! But it's not terribly hard to design something. I demot
by mrkeen 3y ago
> Is there a standard strategy for optimizing balance queries against a series of transactions?
Nope!
But it's not terribly hard to design something.
I demote the DB down to a caching layer, and promote the ledger as the source of truth. All writes are appended to the ledger. Something listens to the ledger and updates the DB. Reads are against the DB.
- allknowingfrog 3y agoHa. I guess finding your own solution is the joy of software. It's good to know I wasn't way off on my caching instincts.