AdminAlex (Admin, MongoDB)
My feedback
11 results found
-
5 votes
An error occurred while saving the comment -
1 vote
An error occurred while saving the comment AdminAlex (Admin, MongoDB) commentedThanks for the feedback Will. I've opened https://jira.mongodb.org/browse/GODRIVER-3165 for the team to track this enhancement request.
-
3 votes
An error occurred while saving the comment AdminAlex (Admin, MongoDB) commentedHey Jakub,
Thanks for the suggestion. I've opened https://jira.mongodb.org/browse/NODE-5863 for our team to review this in greater detail.
Alex
-
2 votesAdminAlex (Admin, MongoDB) shared this idea ·
-
4 votes
An error occurred while saving the comment AdminAlex (Admin, MongoDB) commentedThe article at https://www.alexbevi.com/blog/2021/09/24/copy-mongodb-index-definitions/ has a script that can be used to automatically generate the createIndexes commands.
-
5 votesAdminAlex (Admin, MongoDB) shared this idea ·
-
3 votesAdminAlex (Admin, MongoDB) supported this idea ·
-
2 votesAdminAlex (Admin, MongoDB) shared this idea ·
-
108 votesAdminAlex (Admin, MongoDB) supported this idea ·
-
34 votesAdminAlex (Admin, MongoDB) supported this idea ·
-
16 votesAdminAlex (Admin, MongoDB) shared this idea ·
Thanks for the suggestion Kevin! Just for additional context, this type of connection health checking is typically done automatically by the MongoClient when a connection is checked out of the connection pool and used.
If the checked out connection cannot be used successfully (such as the underlying connection being closed), it will be discarded and a new connection created in it's place.
Connection health checking (such as using [Mongoose's `readyState`](https://mongoosejs.com/docs/api/connection.html#Connection.prototype.readyState) can potentially misreport health as a result of the underlying execution environment (ex: Lambda) freezing/thawing between invokations, resulting in possible internal state inconsistencies. I've filed [this ticket](https://github.com/Automattic/mongoose/issues/14727) for Mongoose specifically, but we will continue to look for ways to improve the developer experience of our drivers in these stateless environments as well.
Note that [Mongoose's Lambda docs](https://mongoosejs.com/docs/lambda.html) don't use `readyState` and also rely on the underlying driver's connection management mechanism.