Hacker News new | ask | show | jobs
by dsun180 2424 days ago
It is implemented with something called QueryChangeDetection here. https://rxdb.info/query-change-detection.html

This is based on meteors oplog-observe-driver https://github.com/meteor/docs/blob/version-NEXT/long-form/o...

So basically when a change-event comes, RxDB does not run the query against the database again, but instead uses the old results together with the event to calculate the new results.