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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:59:59+00:00 2026-05-14T04:59:59+00:00

In Mongo my understanding is that you can have databases and collections. I’m working

  • 0

In Mongo my understanding is that you can have databases and collections. I’m working on a social-type app that will have blogs and comments (among other things) and had previously be using MySQL and pretty heavy partitioning in an attempt to limit possible concurrency issues.

With MySQL I’ve stuffed all my user data into a _user database with several tables to further partition the data (blogs, pages, etc).

My immediate reaction with Mongo would be to create a ‘users’ database with one collection per user. In this way user ‘zach’ blog entries would go into the ‘zach’ collection with associated comments and such becoming sub-objects in the same collection. Basically like dynamically creating one table per user in MySQL, but apparently without the complexity and limitations that might impose.

Of course since I haven’t really used Mongo before I’m having trouble gauging the (ahem..) quality of this idea and the potential problems it might cause down the road.

I’d like user data to be treated a lot like a users directory in a *nix environment where user created/non-shared (mostly) gets put into one place (currently with MySQL that would be the appname_users as mentioned above).

Most of the users data will be specific to the users page(s). Some of the user data which is queried across all site users (searchable user profiles) is currently kept in a separate database/table and I expect things like this could be put into a appname_system database and be broken up into collections and/or application specific databases (appname_profiles).

Anyway, since the available documentation on this is currently a little thin and my experience is extremely limited I thought I might find a little guidance from someone with a better working understanding of the system.

On the plus side I’d really already been attempting to treat MySQL as a schema-less document-store and doing this with Mongo seems much more intuitive/sane/rational so I’m really looking forward to getting started.

Thanks,
Zach

  • 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-14T05:00:00+00:00Added an answer on May 14, 2026 at 5:00 am

    I have the same kind of application.

    Some things to consider: you can cross query between collection bu not between databases.
    So It’s probably better to have a database with all you data and then a collection for each Object.

    Then each document can contain any kind and number of fields.

    I tried to avoid embedding arrays b/c I had trouble query properly my object (it was working fine, but the architecture of my system was designed for this use)

    And a database can be shared between several sever automatically so space is not an issue (if you have more than 1 server)

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

Sidebar

Related Questions

Can Mongo IDs have the same value in different collections in the same database?
Mongo docs state: The Mongo multikey feature can automatically index arrays of values. That's
I have documents in Mongo that contain questionnaire-like data (company's name, address, phone numbers,
If I have a mongo instance running, how can I check what port numbers
I have run into an issue that is probably due to my mis-understanding of
I have a strange problem with a Windows Phone (7.1/Mango) app. My understanding is
I need to use the mongo-storm library and Clojars doesn't have it . So
The problem is: I have 3 mongo tables, and I want to migrate data
I can't seem to connect to Mongo DB, which I've installed as a Windows
I have a mongo query to be executed : query = { dateField :

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.