DDCODE

Share programming skills from Magic Oriental

upArrow

How to view how many pieces of data in a collection of mongodb

 May 12, 2019   mongodb, question

How to view how many pieces of data in a collection of mongodb

What statement can be checked?

db.getCollection('collection').count()

Related Posts:

  • The article lists 5 million pieces of data, and…
  • The article lists 5 million pieces of data, and…
  • At the time of registration, the same user…
  • At the time of registration, the same user…
  • In MySQL, how to choose between "multiple queries of…
  • Suppose I have 1,000 pieces of data, I need to…
  • Suppose I have 1,000 pieces of data, I need to…
  • The collection created by mongodb cannot be deleted…
  • The Mongodb Mapreduce output option is replace to a…
<< After the mac installation mongodb succeeds, an error is reported when starting up as shown in the figure. PID has been turned off or not. How to solve it? Mongodb’s upsert method insert data id is null? >>

Related Posts:

  • The article lists 5 million pieces of data, and…
  • The article lists 5 million pieces of data, and…
  • At the time of registration, the same user…
  • At the time of registration, the same user…
  • In MySQL, how to choose between "multiple queries of…
  • Suppose I have 1,000 pieces of data, I need to…
  • Suppose I have 1,000 pieces of data, I need to…
  • The collection created by mongodb cannot be deleted…
  • The Mongodb Mapreduce output option is replace to a…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme