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) commented
Thanks for the feedback Will. I've opened https://jira.mongodb.org/browse/GODRIVER-3165 for the team to track this enhancement request.
-
2 votes
An error occurred while saving the comment AdminAlex (Admin, MongoDB) commented
Hey 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 votes
AdminAlex (Admin, MongoDB) shared this idea ·
-
3 votes
An error occurred while saving the comment AdminAlex (Admin, MongoDB) commented
The 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 votes
AdminAlex (Admin, MongoDB) shared this idea ·
-
3 votes
AdminAlex (Admin, MongoDB) supported this idea ·
-
2 votes
AdminAlex (Admin, MongoDB) shared this idea ·
-
105 votes
AdminAlex (Admin, MongoDB) supported this idea ·
-
32 votes
AdminAlex (Admin, MongoDB) supported this idea ·
-
15 votes
AdminAlex (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.