Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-112

Is a thread pool more performant than greenlets?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Based on:

      https://emptysqua.re/blog/response-to-asynchronous-python-and-databases/

      ... Motor might perform better under the expected common cases if it uses a thread pool instead of greenlets. Plus the implementation will be dramatically simplified, and porting to PyMongo 3 (MOTOR-87) will be a cinch.

      PyMongo 3.x can drop the hooks for Motor: _event_class, _monitor_class, and _pool_class.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: