Replies: 1 comment 3 replies
-
as far as my research went, seems like mongoose already has https://mongoosejs.com/docs/connections.html#connection_pools so no need in additional logic to cache connections. Am i right? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, there are numerous articles over the web suggesting to cache mongoose.connection like so:
however i didn't find anything related on mongoose docs.
Is it considered good practice to cache connection (to avoid unnecessary connections)? And what is the conventions of doing this?
Beta Was this translation helpful? Give feedback.
All reactions