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

Add to documentation: Create MongoClient once for each process and reuse it

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 4.8
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:
      None

      A lot of new users create multiple MongoClient instances as they don't realise it can be reused. 

      Let's add a note on the following pages to highlight that MongoClient connections can be reused. In the note, also link the FAQ on connection pooling for those user who wants to read more about it. 

      1. https://pymongo.readthedocs.io/en/stable/tutorial.html 
      2. https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html?highlight=mongoclient

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            shubham.ranjan@mongodb.com Shubham Ranjan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: