Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6916843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:39:19+00:00 2026-05-27T09:39:19+00:00

I am started using MongoDB few days ago, and i have problem in understanding

  • 0

I am started using MongoDB few days ago, and i have problem in understanding some database architecture. If i execute the query db.stats(); i had got filesize ,datasize,storagesize & indexsize. While i am surfing i found that the following:

Storagesize = datasize + free space allocated for collection

datasize = database size utilised by MongoDB

Here, I could not understand the representaion of filesize & datasize reprsentation. For datasize –> indexsize is also included?. Please provide a precise solution for the specified attributes and please do correct me if i mentioned anythng wrong.

Advance Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:39:20+00:00Added an answer on May 27, 2026 at 9:39 am
    • dataSize : Sum of all actual data (BSON objects) used by the database, in bytes
    • indexSize : Sum of all indexes used by the database, in bytes
    • storageSize : dataSize plus all preallocated collection space, in bytes
    • fileSize : Sum of the sizes of all files allocated for this database (e.g. test.0 + test.1 etc.), in bytes
    • nsSizeMB : Size of namespace file for this database, in megabytes.
    • avgObjSize : Average size of document objects in database. This value includes padding and may therefore not change when you reduce the size of documents.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am started using MongoDB few days ago. Everything is fine with MongoDB but
I started using Sandcastle some time ago to generate a Documentation Website for one
I started using WordPress just a few hours ago because I need to develop
I started studied MongoDB about 2~3 days ago, and I am feeling pretty happy
I started using the Telerik Html.Grid today and have already run into a problem.
I started using LINQ (Language Integrated Query) when it was still in beta, more
I am running some unit test that persist documents into the MongoDb database. For
I started using entity inheritance today with core data, does anyone have any experience
I started using EF 4.1 code first. I have a entity table like this:
I started using OutputCache for my website. The problem that I encounter is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.