Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which command can be used to check the size of a collection named posts?
Home
MongoDB
Which command can be used to check the size of a collection named posts?
0
votes
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
Which command can be used to check the size of a collection named posts?
A - db.posts.stats()
B - db.posts.findStats()
C - db.posts.find({stats:1})
D - db.stats({ collection : posts })
#mangodb
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 17, 2020
by
AdilsonLima
Ans is A
A - db.posts.stats()
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: In our posts collection, which of following command can be used to find all the posts whose author names begin lie between
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: Consider a collection posts which has fields Which statement query retrieves ONLY the key named post_text from the first document retrieved?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: In a collection that contains 100 post documents, what does below command do? db.posts.find().skip(5).limit(5)
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: Which commands finds all the documents in the posts collection with post timestamp field as null?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: What is the maximum size of Index Key Limit and Number of Indexes per collection?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: Which command can be used in mongo shell to show all the databases in your MongoDB instance?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: Which commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: A collection and a document in MongoDB is equivalent to which of the SQL concepts?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
+1
vote
Q: By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: What is the maximum size of a MongoDB document? m
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
...