Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
Empty show more show less
Description
using the mongo-oplog npm, i'm seeing long startup times when creating a tailable cursor on the oplog.
for db.oplog.rs.count() --> 1682274
- takes 10 minutes to start tailing if i use a regexp query on ns
- takes 5 minutes to start tailing if i use no query
- mongo-oplog-cursor is being passed
tailable: true,
timeout: false,
awaitdata: true,
oplogReplay: true,
cursorReplay: true,
numberOfRetries: Number.MAX_VALUE
https://github.com/cayasso/mongo-oplog-cursor/blob/master/index.js#L66
is there anyway to speed this up? server is version 2.4.10