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

Server session creation grows unbounded with every operation call

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: 3.5.5
    • Component/s: None
    • Labels:
      None

      Currently a ServerSession is acquired for each ClientSession in the constructor, which means that every operation creates a session as soon as its called, potentially much earlier than the operation is actually run. DRIVERS-1030 proposes that server session acquisition be deferred until a connection has been checked out for operation execution. While I anticipate a more comprehensive solution for the Node.js driver when we tackle that ticket, today we can make server session acquisition "lazy" and gain the same benefit.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: