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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:43:28+00:00 2026-05-31T23:43:28+00:00

This is a general question about mongodb database design, but the reason for my

  • 0

This is a general question about mongodb database design, but the reason for my question is that I am designing a database for a system where I generate static html files for a lot of small websites.
The websites can contain different types of pages, some are lists of users, some are lists of other pages and some are just static information pages.

Now I am wondering whether it would be better to have one collection of Pages to store data for all the different kind of website pages or whether it would be better to
have several collections – one collection for each type of page.

If I only use one collection, then this would probably end up with many indexes on a table with many entries, including indexing by type of page.
If a use several collections, then each collection would be smaller and have a few indexes, including one for each collection on the id field.

My gut feeling is that it in general would be better to go with several collections, because then the data is already have one level of indexing by having them in different collections.
But what if the number of different collections is like 100 ?

My question basically is which of the two approaches is preferable with respect to index performance and index size, write performance, locking etc – many collections or one super collection ?

The answer is probably some variant of “it depends”, so which factors are impotant to take into account when deciding which way to go?

  • 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-31T23:43:29+00:00Added an answer on May 31, 2026 at 11:43 pm

    The MongoDB documentation discusses this exact issue: http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections

    In general a relatively large number of collections is not an issue.

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

Sidebar

Related Questions

This is a general design question about how to make a web application that
This is a general question about MVC as a pattern, but in this case
This is a general question of sorts, but do you think that it's important
This is a general question about writing web apps. I have an application that
this is a General Question about MVC .. I wrote a PHP Class that
Although I'm programming in C++, this is more of a general question about design.
This is a general question about design. What's the best way to communicate between
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question about character encoding when using MD5 libraries in various
So this is more of a general question about apps and techniques rather than

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.