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

  • SEARCH
  • Home
  • 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 9036875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:06:35+00:00 2026-06-16T09:06:35+00:00

I just want to understand why MongoDB uses that much disk space or even

  • 0

I just want to understand why MongoDB uses that much disk space or even better would be to possibly reduce it.

The following is just an example. I have a storageSize of 1,35GB (includes dataSize + preallocated space), the index size is about 0,5GB, sums up to roughly 2GB. I know that mongodb allocates 2GB files, so you could loose some space there, but how is it possible to use 6GB of file size? Padding is set to 1, actually it’s just once written data, never any deletes or updates. Is there any possibility to reduce the file size?

In my case, MongoDB uses 6 times more space than my traditional SQL solution. I really want to use MongoDB, but I need to find a way to reduce diskspace. Thank you!

> db.stats(1024*1024)
{
    "db" : "data",
    "collections" : 4345,
    "objects" : 9328910,
    "avgObjSize" : 67.95158105287756,
    "dataSize" : 604,
    "storageSize" : 1350,
    "numExtents" : 6480,
    "indexes" : 8686,
    "indexSize" : 511,
    "fileSize" : 6078,
    "nsSizeMB" : 16,
    "ok" : 1
}

note: “data” is the only database in use in this stats

  • 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-06-16T09:06:37+00:00Added an answer on June 16, 2026 at 9:06 am

    what I didn’t understand was that it in unix systems, mongodb does not just preallocate the current file, but also the NEXT file which can result in 2+2=4GB total preallocation…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that Silverlight 3.0 has binding but just want a simple example on
See the code below, I just want to understand the reason behind that... const
This isn’t trully a problem, I just want to understand. Considering the following code:
I just want to understand the following scenario. Where I am implementing a <TabControl>
I just want to understand why I cannot create a protected enum on C#?
I want to understand the actual theory behind types rather than just learning about
I just want to understand how this software works: http://www.subnet-calculator.com/
Possible Duplicate: Learning about LINQ Hi everyone, I just want to understand what exactly
I just want to understand how the database connection work through datasource. When we
I just want to understand how capturing and bubbling work. Unfortunately this code just

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.