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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:45:41+00:00 2026-05-22T21:45:41+00:00

Simple mongodb collection which stores sent emails: { msgid: objectid senderid: <some objectid>, sendername:

  • 0

Simple mongodb collection which stores sent emails:

{
    msgid: objectid
    senderid: <some objectid>,
    sendername: <some name>,
    recip: [{memid:<objectid>, name:<some name>}, {memid:<objectid>, name:<some name>}, ...]
}

contains information about message sender and recipients. Now, I’m trying to decide whether I should store sender/recipients names in the message or resolve them after I retrieve messages. By “resolve” I mean look for names by id in memcached cache of the main system. There might be 1-10 recipients per message, and I retrieve 10-20 messages per request, so in teh worst case scenarion I would need to lookup 200 names per page request. The site will be high load, so I’m concerned about the load on memcached, but on the other side storing names along with teh messages will increase disk space used dramatically.

Any suggestion is highly appreciated!

  • 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-22T21:45:42+00:00Added an answer on May 22, 2026 at 9:45 pm

    storing names along with teh messages
    will increase disk space used
    dramatically.

    Don’t care about disk space — disk space is nothing, it is cheap.

    If your system will highload store at recip everything you need (even mother, father names ;)), no doubt.

    1. Denormalize your data in order to increase application speed and decrease number of request to database(even to memcache).
    2. Update denormalized data in background if need.

    I doing in way described above in my projects and everything working fast ;). But it’s only my opinion and my solution. Other peoples may think different.

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

Sidebar

Related Questions

So, there are mongodb-csharp simple-mongodb NoRM as C# drivers for MongoDB available. Which one
I've got a simple model object: class UserRating include MongoMapper::EmbeddedDocument key :idea_id, ObjectId key
So I'm building an app using PHP and MongoDB which will have a fair
I made a simple db with a few users in it with mongodb and
I'm using MongoDB and official C# driver 0.9 I'm just checking how embedding simple
I have a simple project that has one submodule. $ git submodule 964737623a362f6303e87ec41f2c7090c8c2c093 lib/mongodb-php-odm
I'm looking for a simple example of a one to one relation with lift/mongodb.
Simple ASP.NET application. I have two drop-down controls. On the first-drop down I have
Simple as the title states: Can you use only Java commands to take a
Simple question, but one that I've been curious about...is there a functional difference between

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.