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

MongoClient.connect slowed down in 3.0 on Windows

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.1
    • Component/s: MongoDB 3.4
    • Environment:
      Windows 10, Node 8.9.3, MongoDB server 3.4.10.

      After upgrading my mongodb driver from 2.2.33 to 3.0.1, the time to connect to the server, even to the local machine, increased from a few milliseconds to over a second.

      I tested and verified that this is the line causing the slow down.
      const client = await MongoClient.connect('mongodb://localhost:27017');
      Other operations are as fast as on 2.2.33.

      I tested the same issue on a mac running High Sierra 10.13.2, no issue there. This looks like a Windows issue.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mongo_rami Rami Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: