File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
source/connect/connection-options Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,18 @@ object:
165165 minPoolSize: 10
166166 });
167167
168+ .. note::
169+
170+ A ``MongoClient`` configured with ``maxIdleTimeMS`` and ``minPoolSize``
171+ set to ``0`` is optimal for workloads with sustained periods of low activity.
172+ This configuration allows the connection pool to close unused connections
173+ during periods of inactivity.
174+
175+ In versions earlier than 6.18.0, the {+driver-short+} did not close idle
176+ connections when ``minPoolSize`` was set to ``0`` during periods of
177+ inactivity. Starting in version 6.18.0, the connection pool correctly closes
178+ idle connections regardless of the ``minPoolSize`` setting.
179+
168180.. _node-connection-pool-max-idle-time:
169181
170182maxIdleTimeMS
You can’t perform that action at this time.
0 commit comments