Re:EventReduce: An algorithm to optimize database queries th...
by eventreduce on Thursday April 16, 2020 @08:13AM
(#22888573)
No it is explicitly not for append-only data.
It works with inserts, updates and deletes.
I think I have problems understanding what exactly you mean by the need for a logical clock.
The algorithm is feeded with the old query results plus one event, and then returns the new query results. Since there is only one event at each point of time, it does not have to order or maintain them.
Re:EventReduce: An algorithm to optimize database queries th...
by tyingq on Thursday April 16, 2020 @08:15AM
(#22888584)
I had the same question as #2. Basically, it has to be the front-end to any event that reads/writes the data, in strict order of occurrence?
Re:EventReduce: An algorithm to optimize database queries th...
by eventreduce on Thursday April 16, 2020 @08:20AM
(#22888614)
Not exactly. To use EventReduce you must have a changestream out of all writes to your data int the correct order. You can do that by wrapping a frontend over your database.
But easier you do that by using a database that already provides a changestream like couchdb, Postgres, mongodb and so on.
Edit: your example gives replaceExisting() so that's supporting an update of some kind.