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

  • Home
  • SEARCH
  • 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 8390221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:55:34+00:00 2026-06-09T18:55:34+00:00

I have a notification system in which there are various types comments, product_added etc.

  • 0

I have a notification system in which there are various types “comments”, “product_added” etc. and there are many users too.

Based on user’s friends would see notifications upon action performed by user or his/her friends. the thing is that i have to maintain a record of which friend has read the notification or not, I already have a table in which I have stored the:

notification_id,    
type_id ,   
item_id ,   
user_id ,   
owner_user_id , 
is_seen,
time_stamp, 
title_html, 
title_text, 
body_html,
body_text,  
href,
icon_url

Should I use an array to store all the friends id’s who seen the notification in is_seen or should I create a new table named notification_seen in which I maintain record for each friend who seen that notification?

All notifications would last up to 30 days and also have to keep in mind that if a user has more then 200 friends, then storing 200 ids in a array and then retrieving it and breaking array then showing them (inshort a long procedure according to me).

So can any one suggest which one is a better way or any more better way that I am not aware of?

  • 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-09T18:55:35+00:00Added an answer on June 9, 2026 at 6:55 pm

    Use a separate table. An array in a relational database is always a bad idea because you cannot apply database operations and queries to single array elements without user defined functions or complicated expressions in queries. And also it does not adhere to the normalization paradigm.

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

Sidebar

Related Questions

I have a notification system on my website where users will be notified of
I have a function to display a notification, which I call from various activities.
We have an automatic reporting and notification system written in .net that sends emails
As you may have seen, Google is migrating its Push Notification System. Google Developer
I have code like: @notifications = Notification.find_all_by_user_id(@user.id, :order=>'deliver_by DESC', :conditions=>deliver_by >= '#{Date.today.to_s(:db)}') logger.info @upcoming_reminders[0].inspect
I have a notification which should give me some parameters when opening an activity
We have an ASP.NET MVC web app which allows users to publish messages onto
I have an application which resides in the system tray, and instead of the
I'm using velocity templates to generated plain-text emails for a notification system. I have
I have been playing with PostgreSQL's notification system and cannot for the life of

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.