[DOCS-7143] Comment on: "manual/reference/command/collStats.txt" Created: 12/Feb/16  Updated: 30/Mar/16  Resolved: 07/Mar/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Docs Collector User (Inactive) Assignee: Ravind Kumar (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/command/collStats/#dbcmd.collStats
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36
Referrer: https://docs.mongodb.org/manual/reference/method/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/command/collStats


Participants:
Days since reply: 7 years, 49 weeks, 2 days ago

 Description   

How do I call it? I tried
db.collStats() but get TypeError: Property 'collStats' of object MYDB is not a function



 Comments   
Comment by Githook User [ 07/Mar/16 ]

Author:

{u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}

Message: DOCS-7143: Update collStats page with examples

  • Also included a fact-dbcommand.rst

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.0
https://github.com/mongodb/docs/commit/e58194ec4ca6529c554d1b043408a578d8d6b68f

Comment by Githook User [ 07/Mar/16 ]

Author:

{u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}

Message: DOCS-7143: Update collStats page with examples

  • Also included a fact-dbcommand.rst

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/2060e7d2a69ad261b4c8aaa10d28f1b74045e1a6

Comment by Ravind Kumar (Inactive) [ 12/Feb/16 ]

Hello!

You need to use the db.runCommand( < command> ) method in order to use collStats.

For example,

    db.runCommand( { collStats: "<collection name>" , scale : 1024, verbose: true } )

We will update the page to make the relationship between collStats and db.runCommand() more explicit. Thank you for bringing this to our attention!

Generated at Thu Feb 08 07:53:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.