MongoDB Add Array Element with Virtual Order
Does anyone know how to add an array element to a mongodb array and set a “virtual” order to the size of the array, all in an atomic operation?
Access Data in MongoDbClient Cursor not working as expected
I have a single Document in my mongoDb collection:
Access Data in MongoDbClient Cursor not working as expected
I have a single Document in my mongoDb collection:
MongoDB: Efficiently implement TTL index
I currently have the following data model in my mongodb which I have set up accordingly to the problem explained here: https://www.mongodb.com/docs/atlas/schema-suggestions/avoid-unbounded-arrays/:
How to know if the secondary node is ok in MongoDb
I have a mongo replica set of 3 nodes. We use the primary for both write and read. Its a legacy system so it doesn’t see much use. Mongo version used is 2.6.11 . When I run isMaster on one of the secondary nodes, this is the response I get.
Can mongodb repair database without rebuild indexes?
I have an issue. When I run mongod --repair
command, mongo start rebuild all indexes. I want run --repair
without rebuilding index. How?
Remove object element in array inside another object in mongoDB
Keeping it short.
I have:
How to access URL from Docker
I have developed an API using Docker on Windows. While running inside Visual Studio, I can access the URL without any issues. However, after stopping Visual Studio and deploying the application, the URL becomes unreachable when accessed through Docker. I switched Docker to Windows containers before starting it and am running Docker on Windows 11. […]
How to start mongodb Server? on Mac OS I’m having same issue from past few days
I’m getting this error in my macOS monterey system when I’m trying to use Mongodb in my project MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
I tried lot of commands and I also reinstalled the mongodb using hombrew
Mongodb OPS Manager – command metric
What types of activities are shown under the “command” metric in OPS Manager Deployment metrics ? I see inserts and updates also showing up as “command” in database logs. If inserts show as command in db logs (and presumably in OPS Manager “command” metric), what are the inserts that show separately in the Metrics ?