nodejs oplog tailing, long startup time

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            Bruce Chu
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: