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 prior to 6.18.0, idle connections were not cleaned up when
176+ ``minPoolSize`` was set to ``0``. Starting in version 6.18.0, the connection
177+ pool correctly cleans up idle connections regardless of the ``minPoolSize``
178+ setting.
179+
168180.. _node-connection-pool-max-idle-time:
169181
170182maxIdleTimeMS
You can’t perform that action at this time.
0 commit comments