How Can I Close The MongoDB Connection Through kmongo?

50 views
Skip to first unread message

Maximize Perspective

unread,
Jun 4, 2022, 12:42:37 AM6/4/22
to kmongo
So I'm working with ktor and kmongo && I have noticed from the logs that the connection didn't close automatically, how can I close the connection? I have searched most of the docs but couldn't find anything? how can I close it??
Thank you:)

zigzago

unread,
Nov 24, 2022, 1:18:07 AM11/24/22
to kmongo
There is a connection pool in the java driver - see https://www.mongodb.com/docs/manual/administration/connection-pool-overview/
You can set minPoolSize & maxIdleTimeMS to close unused connections.

HTH
Reply all
Reply to author
Forward
0 new messages