Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4482

Improve performance of session pool

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      The benchmark in PYTHON-4481 shows a lot of time spent waiting in get_server_session and return_server_session. I believe this is due to contention overhead and synchronization cost on the Topology lock. We should be able to make the session pool thread safe and lock-free to avoid this bottleneck.

      Definition of done

      Lock-free and thread-safe session pool. Verify this results in a performance improvement.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: