MONGODB: why data structures of min/max in chunks are different?
For a normal user database that is sharded by _id, sh.status() gives you a result like this:
How to query a tree structure and sort children in mongodb
I want to query the entire tree structure in mongodb, and I found a piece of code here.
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.
Hot to give killop action privilege in mongoDB
I am running stand-alone MongoDb server.
I want user that has Cluster Moniter Built-in role and killop action privilege.
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.
MongoDB ArrayFilter not targeting element
I know this is a very cliche subject, but I feel I’m missing something simple.
This is the DB:
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:
How to delete one value from a key having multiple values in a collection of MongoDB
I have a collection:
`{
“_id” : {
“portName” : “xe-xsa/3”,
“uuid” : “00000000-0000-0000-0000-00000000000d”,
“routerId” : “3.3.3.3”
},
“version” : NumberLong(4),
“freeValues” : [
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.
MongoDB The best model between relational collections
for example i have 3 collection:
user: