Shashank's Blog

Skip to content
  • General
  • Programming Language
    • Python
  • Database
    • SQL
    • MySQL
    • Postgresql
  • Web Framework
    • Django
  • Linux/Unix
    • Linux Commands
Search

mongodb

collection size in mongodb

July 30, 2017 / Shashank vivek / Leave a comment

Lets say i have a collection named testsize, using below command will give me

> db.testsize.totalSize()

200

total size in bytes of the data in the collection plus the size of every indexes on the collection.

For more information read official mongodb doc here.

 

Translate

Recent Posts

  • Dump only Data in PostgreSQL table backup April 6, 2020
  • Number of rows per partition in a MySQL table November 4, 2019
  • What is GIPSA ? November 2, 2019
  • Difference between two dates in mysql July 20, 2018
  • Reading CSV file in python February 24, 2018

RSS Feed

  • RSS - Posts

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy