Browse Source

mongo tail

master
zeus 4 years ago
parent
commit
859ac8ba2e
  1. 4
      swarmlab-app/src/run/app.js

4
swarmlab-app/src/run/app.js

@ -370,11 +370,11 @@ io.origins('*:*') // for latest version
function onCollection(err, collection) {
let options = { tailable: true,
awaitData: true,
awaitdata: true,
numberOfRetries: -1,
tailableRetryInterval: 500
};
var cursor = collection.find().cursor(options);
var cursor = collection.find().cursor(options).stream();
//var cursor = collection.find({}, options),
// cursorStream = cursor.stream(),
// itemsProcessed = 0;

Loading…
Cancel
Save