4 ms·
It is implemented with something called QueryChangeDetection here. https://rxdb.info/query-change-detection.html https://rxdb.info/query-change-detection.html
by dsun180 7y ago
It is implemented with something called QueryChangeDetection here. https://rxdb.info/query-change-detection.html 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/oplog-observe-driver.md 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.