Currently, all ops for a document are loaded into memory when getOps is invoked, then filtered to exclude those ops before to.
|
self._getOps(collectionName, id, from, options, function(err, ops) { |
There is an opportunity to optimize the amount of memory used, by querying for only the ops before the specified to value.
Related to share/sharedb#220