mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Before this change, number of catch-up attempts was N*M, where N is number of writes inside of the fence, and M is number of active observers on affected collections. Every catch up issues yet another query to find the latest oplog entry. It was extremely inefficient, in terms of both CPU usage and added latency. After executing write-heavy methods, application process was occupied for many seconds doing the same thing over and over again. This change provides a performance improvement for all kinds of workloads.