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

The Archive Base Latest Questions

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

I am desgining a service where each authenticated user works with his own set

  • 0

I am desgining a service where each authenticated user works with his own set of objects/documents, so the user accounts are completely separate. Does it make sense if I split the collections into individual per-user collecions or databases? Will it give me any speed or security advantages? Or should I just combine documents in common collections and let indexing and sharding do the work for me?

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

    For a small number of users you can do collection-per-user but for larger numbers you’d want to put them into the same collection. See http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections

    According to that page there aren’t any major performance penalties from using lots of collections.

    From a security perspective you aren’t really gaining anything, any collection is as easy to access as any other, security is at the application-level for the most-part with MongoDB.

    From a manageability perspective I’d put them in a single collection. That way you can run map-reduce jobs easily to summarize user stats.

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

Sidebar

Related Questions

I am designing a multi-file upload service that also shows upload progress for each
Let's assume that I am designing a service like Foursquare that tracks user checkins
I have a Mongo collection where each document has a set of unique embedded
There are several packages in my application that user can select each one according
i was thinking about designing a service that can provide my subscribers feed updates
I'm designing a web service in ASP.NET and VS2008, and am using typed datasets
I am designing a Proxy Service sequence that includes an XQuery transformation. I have
I am designing a WCF service with callback, but my implementation of the callback
I am designing a WCF service with callback using named pipe binding. And when
I'm currently designing an app that pulls map data from a service and renders

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.