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 7808269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:05:32+00:00 2026-06-02T03:05:32+00:00

This is related to my last question . We have an app where we

  • 0

This is related to my last question.

We have an app where we are storing large amounts of data per user. Because of the nature of data, previously we decided to create a new database for each user. This would have required a large no. of databases (probably millions) — and as someone pointed out in a comment, that this indicated wrong design.

So we changed the design and now we are thinking about storing each user’s entire information in one collection. This means one collection exactly maps to one user. Since there are 12,000 collections available per database, we can store 12,000 users per DB (and this limit could be increased).

But, now my question is — is there any limit on the no. of documents a collection can have. Because of the way we need to store data per user, we expect to have a huge (tens of millions in extreme cases) no. of document per documents. Is that OK for MongoDB and design-wise?

EDIT

Thanks for the answers. I guess then it’s OK to use large no of documents per collection.

The app is a specialized inventory control system. Each user has a large no. of little pieces of information related to them. Each piece of information has a category and some related stuff under that category. Moreover, no two collections need to see each other’s data — hence an index that touch more than one collection is not needed.

  • 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-02T03:05:33+00:00Added an answer on June 2, 2026 at 3:05 am

    Your design still doesn’t make much sense. Why store each user in a separate collection?

    What indexes do you have on the data? If you are indexing by some field that has content that’s common across all the users you’ll get a significant saving in total index size by having a single collection with one index.

    Index size is often the limiting factor not total database size when it comes to performance.

    Why do you have so many documents per user? How large are they?

    Craigslist put 2+ billion documents in MongoDB so that shouldn’t be an issue if you have the hardware to support it and aren’t being inefficient with your indexes.

    If you posted more of your schema here you’d probably get better advice.

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

Sidebar

Related Questions

This is related to my last question . I have an application that I
this question is partially related to my last question . I have a generic
I have searched here, GooBingHooVista'd the world and read this related question for VS
This is related to this question I asked earlier about syntax highlighting user-defined blocks
This is related, but not identical to my last question . So I thought
in a related question I have posted this code. It almost works, but the
related to my last question , I now have the following problem: function TNodeFactory
I have an SQL question, related to this and this question (but different). Basically
Closely related to this question: Bash printf prefix I have the following Bash script
This question is an extension of this Related question . Taking Derick's advice, I

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.