cursor.toArray() takes 95% time of the operation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.5.6
    • Component/s: BSON, Docs, js-bson
    • Environment:
      node.js mongodb driver
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am doing following thing my function:

       

      1. db.collection.find()
      2. cursor.toArray

       

      the total time of both steps is approx. 31 to 33 seconds. but issue is second step itself only takes 27 to 29 seconds.

       

              Assignee:
              Matt Broadstone
              Reporter:
              Mitul Gedeeya
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: