News for hackers. Stuff that matters.
Re:Web Applications from the Future: A Database in the Browser by mathgladiator on Wednesday June 09, 2021 @04:26PM (#27452751)
Absolutely, this is a key reason why I strongly believe what goes in the log matters. If the log is a list of commands, then you have two representations to contend with: the differential/patch form and then the aggregated state.

An area that I'm playing around with is a log reducer which transforms a region within a log into a single item. For instance, if the log entries are just JSON (without arrays) then json merge (RFC 7396) is an example reducer. See http://www.adama-lang.org/blog/json-on-the-brain for more detail.

Re:Web Applications from the Future: A Database in the Browser by aabbcc1241 on Wednesday June 09, 2021 @09:46PM (#27455808)
Interesting approach to reduce or even eliminate the workload of left folding the logs