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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:45:38+00:00 2026-06-05T08:45:38+00:00

I am modeling my data-schema at the moment and I am not sure about

  • 0

I am modeling my data-schema at the moment and I am not sure about if my thought-process is making sense. So I thought I might ask some of the more experienced MongoDB guys here:


Let us suppose my application produces up to 10.000 event-documents a day. I want to access them time-based. Like: “Give me all the events of those three days!”.

My RDBMS knowledge I gathered at university first told me: “Do an Events-Collection and give each document the Event’s propertie ‘Date’. Done.”

But then I came across with the idea to do a collection for each day!. Then I could access those Events very fast, by just getting all the events of one single day by just calling its coresponding collection.

Does this makes sense? Can I have hundreds/thousands collections without sacrifising speed/performance?


Thank you for advise 🙂

  • 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-05T08:45:40+00:00Added an answer on June 5, 2026 at 8:45 am

    10.000 documents per day is not a very much. Over the course of one year, that is 3.65m documents. That is certainly not a very small collection, but I don’t see much sense in breaking them up.

    The downsides in this specific case are

    • It’s hard to change your query patterns later on. If you suddenly need hour-precision, you are in trouble. If you want to find all events in the last year with some field x set to y, you’ll have to query 365 or 366 collections.
    • Your query patterns will be more complicated, because you have to deal with the different collection names. Also, you need several round-trips to the database.
    • Internationalization is very complicated, because “day” is not a well-defined point in time across the globe. Using a UTC DateTime field on the other hand allows you to query in different time zones, should that ever be required.
    • Managing a large number of collections can be tedious, working with the shell will be quite annoying.
    • Sharding is normally performed on a per-collection-basis. If you have many smaller collections, you can’t do auto-sharding.

    However, working with a larger number of collections is possible, though there are limits you should understand. As the docs explain, you can have 12,000 collections w/ one index each with the default settings. See there for more details.

    Server Density blogged about their approach, they use a lot of collections too, but they chew 650m documents and they claim that it doesn’t make a big difference performance-wise.

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

Sidebar

Related Questions

When I asked about the right approach to a data modeling problem--using one or
I'm thinking about general modeling (diagramming) standards and tools such as BPMN, UML, data
I'd like peoples opinion about the concept on Data Modeling Vs SQL (OOP Vs
The question is about modeling infinity in C++ for the double data type. I
I'm new to modeling star schemas, fresh from reading the Data Warehouse Toolkit .
Is there a better way of modeling data in F# to avoid needing it?
CWM is data modeling UML is object modeling. Can someone explain the difference that
I have a typical definition/instance situation in my data modeling. I'm trying to store
Is there a proper term in data modeling to describe the following? Given table
I recently found a reference to ' Data Vault Modeling ' as a model

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.