Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2582

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

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

      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@mongodb.com Matt Broadstone
            Reporter:
            imitul.karishyen@gmail.com Mitul Gedeeya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: