Hi
@Pooya_he,
Welcome to the MongoDB Community forums ![]()
-
Could you share more details, such as the version of Mongoose you are using, the deployment details (whether it’s MongoDB Atlas or locally deployed), and the MongoDB version?
-
Have you changed anything recently in your codebase that could affect the connection latency?
However, you can enable the logging in mongoose using the debug option. Please refer to the link to learn more: Mongoose v8.4.4: FAQ
In case you are looking to use MongoDB Native Nodejs driver and enable the logging, please refer to the driver documentation here.
I hope it helps.
Best,
Kushagra