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
Currently, all ops for a document are loaded into memory when
getOpsis invoked, then filtered to exclude those ops beforeto.sharedb-mongo/index.js
Line 362 in 5a7c674
There is an opportunity to optimize the amount of memory used, by querying for only the ops before the specified
tovalue.Related to share/sharedb#220