Relative Content

Tag Archive for mongodb

Indexing Empty Collection seems slow on my Mac

I’m running community edition (v7) on latest Mac OS version (Intel Mac). This is a nodejs application with a lot of tests that I’ve written and each set of tests creates a new DB and several collections with indexes before it runs that test.

cannot connect to mongodb ETIMEOUT

Since i change my network i cannot connect to MongoDB. i have been searching for a solution in here, most of it says that i need to change my DNS. i have change my DNS to 8.8.8.8 but i still cant connect.

Find all documents whose a field is in a range of values

I have a mongodb database whose documents have a field A that is encoded in base64. I would like to retrieve all documents for which this field is in a specific list of encoded values. Here is how I do it for one encoded value:

Mongo DB – how does re-connection works internally?

In my spring boot application, at the startup, I am connecting to mongo db using MongoClient and using MongoCredential.createPlainCredential and thus supplying user-name and password.
Password is being fetched from hashicorp vault using rest call and supplied to mongoCredential.