Closed gpa closed 7 years ago
Yes, you only keep initialize Mongorito once when your app starts up.
mongoose has built-in re-connection feature, I haven't found anything similar in mongorito. Will there any events be fired? Please explain! Thanks!
Just got down to implementing it, and found out that mongodb
driver reconnects automatically. Wonderful!
Hello, I was wondering whether I should keep a single connection to the database alive or whether to open and close connections on every client request? If I keep it alive, will there any events be fired in case the connection gets interrupted? I know that
mongoose
has a auto-reconnect feature. Is there anything similar inmongorito
?