We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93aa0d commit e9dac33Copy full SHA for e9dac33
source/connect/connection-pools.txt
@@ -77,12 +77,20 @@ your connection URI:
77
before timing out.
78
| Defaults to ``None`` (no timeout)
79
80
-The following code creates a client with a connection pool size of 50:
+The following code creates a client with a connection pool size of 50 by using the
81
+``maxPoolSize`` parameter:
82
83
.. code-block:: python
84
85
client = MongoClient(host, port, maxPoolSize=50)
86
87
+The following code creates a client with the same configuration as the preceding example,
88
+but uses a connection URI:
89
+
90
+.. code-block:: python
91
92
+ client = MongoClient("mongodb://<host>:<port>/?maxPoolSize=50")
93
94
Additional Information
95
----------------------
96
0 commit comments