![]() If we want to count all of the documents in the userprofile collection, we would run the following. DBQuery.shellBatchSize500 its working in only case where shell is not closed every time you open shell in Robomongo, it will be 50 by default to check default BatchSize run DBQuery.shellBatchSize it will return 50 then run DBQuery.shellBatchSize500 it will return > 500 then fire your get collection get query in same shell > db. The db.runCommand is a helper used to run specific database commands like count. ![]() This is a good place to start: Ĭount is an aggregation command (not a part of the aggregation framework, we’ll get to that later) that relies on the runCommand to perform a count in MongoDB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |