Index present, Compass insists it’s not there
On a pretty large collection of 150M+ documents, I added a partial index (using the cmd line in Compass). Deployment is in a 3-member replicaset.
Index present, Compass insists it’s not there
On a pretty large collection of 150M+ documents, I added a partial index (using the cmd line in Compass). Deployment is in a 3-member replicaset.
Impelimenting search by cursor in mongodb
I want to Implement a cursor search in mongodb. My question is :
How it is possible to tell mongodb to do
How to delete across multiple collections using a query in Mongo?
I have a requirement where I want to delete across multiple collections in a database using a query. For example, let’s say “id”. I want to delete all the documents in all the collections that I have in my database which has the “id” field with value “123” for example. And this should be from a code, let’s say a go code.
Query to return documents with similar fields
Currently, I have these MongoDB documents:
Does reference with ObjectId in mongodb have an impact on performance?
Currently I store the relationship id by just passing the related model id, for example:
Each array should contain unique element using Facet in MongoDB
Here I’m adding the Mongo playground URL how my schema structure look like
how to add max. length to anaylze-schema in mongodb?
I’m new to mongodb, I have version 4.4.8
I have installed the snippet alayze-schema and could analyze the coll.
I have the 4 columns: index, attribute, percentage, type.
Update an embedded field based on condition in Mongodb
I have a collection like this:
In a time-series collection get price 5m, 10m, 1 hour and 24 hours ago
I have a MongoDB time series collection that stores prices information. It has following schema