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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:00:26+00:00 2026-05-22T15:00:26+00:00

We have a basic messaging system, with the following database design MESSAGE MESSAGE_COMMENT MESSAGE_READ

  • 0

We have a basic messaging system, with the following database design

  • MESSAGE
  • MESSAGE_COMMENT
  • MESSAGE_READ
  • USER
  • MESSAGE_TYPE

When the system sends a board cast message to 1 million users on the system, the message is created along with 1 million records in the MESSAGE_READ is also created for each user receiving the message and this is flagged as unread (ie ReadDate=null).

When 100 thousands user reads the board casted message, those 100 thousand users messages are flagged as being read (ReadDate=currentdate)

When the system sends out an updated board cast message, 1 million records in the MESSAGE_READ record is updated and flagged as being unread.
(same thing happens when someone replies to the message, everyone elses MESSAGE_Read is updated as unread, until the read it)

How do you make this system more efficient? Is there anyway to avoid creating/updating records to flag them as read/unread records all the time????? (I wouldn’t think so??)

  • 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-22T15:00:27+00:00Added an answer on May 22, 2026 at 3:00 pm

    Here’s a suggestion that come to my mind :

    How about creating Message_Read instances on the fly . I mean when you post a message don’t create any Message_Read for any of the users. when a user logs in the system checks to see if he has a message that has not been read (no message read exists for it) and alert the user to read them. When a user reads a message a Message_Read record is created for him preventing the system from showing the same alert again.
    Whenever the status of a message is changed and you want to alert the change you can either delete its Message_Read instances or you can move them to an archive table for keeping the history if necessary , thus there’s no Message_Read for that message and user will be notified to read it again.

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

Sidebar

Related Questions

I have a basic CRUD form that uses PageMethods to update the user details,
I have basic generalisation schema in database, I have superclass vehicle, and its subclases
I'm trying to set up a messaging system where a user's messages are displayed
I'm working on a messaging/notification system for our products. Basic requirements are: Fire and
It seems like most of the messaging systems I've looked at have basic, if
Using MySQL for basic storage of system/user data. I need to store/search messages (adding
I have my iDevices doing some basic messaging via Bonjour and I am ready
I am trying to create a basic internal messaging system. The only 'special' consideration
I am doing some basic Socket messaging. I have a routine that works well
I have basic idea on Kilo Virtual Machine on Mobiles , I have clear

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.