Show mongodb slow connection warning after 2 seconds #1372
thgh
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
I have the same experience, this happen when the database is not local. A find operation delay is about 7-15 seconds to be resolved. Exist any way to pass more parameters to the connections like autoReconnect=true to the created mongo connection? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes it happens mongodb is not running locally and it takes 10 seconds for the
MongooseError: Operation
users.countDocuments()buffering timed out after 10000ms
error to appear. The DX can be improved by showing a warning when the database seems to be down. The timeout should stay long, as not to break apps where the database connection takes a long time. It should just guide the user to start their database when it seems down. (not sure what a normal connection time is)Beta Was this translation helpful? Give feedback.
All reactions