How does Connection.prototype.useDb()
works under the hood?
#13266
-
I am trying to understand the Connection.prototype.useDb() method better. I would appreciate it if someone could help me. The mongoose document for useDb() states:
Does this mean that if there is an available connection in the connection pool The mongoose document for useDb() states:
What happens in the following scenario(considering that Considering:
and considering this from mongodb.com which states:
Does this mean 5 queries which are supposed to be executed on |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I did a little experiment and I found these results summary:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
I did a little experiment and I found these results
summary: