Skip to content

Commit e9dac33

Browse files
committed
Fix
1 parent b93aa0d commit e9dac33

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/connect/connection-pools.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,20 @@ your connection URI:
7777
before timing out.
7878
| Defaults to ``None`` (no timeout)
7979

80-
The following code creates a client with a connection pool size of 50:
80+
The following code creates a client with a connection pool size of 50 by using the
81+
``maxPoolSize`` parameter:
8182

8283
.. code-block:: python
8384

8485
client = MongoClient(host, port, maxPoolSize=50)
8586

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+
8694
Additional Information
8795
----------------------
8896

0 commit comments

Comments
 (0)