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

The Archive Base Latest Questions

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

How can i impelement a Facebook NewsFeed like feature in my PHP based community

  • 0

How can i impelement a Facebook NewsFeed like feature in my PHP based community application? For example “X user uploaded a new photo, Z attending to a event”. Fetching all this data from different tables consumes too resources.

Thanks.

  • 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-13T14:22:46+00:00Added an answer on May 13, 2026 at 2:22 pm

    There are a couple of different ways you can do this, but the one I would suggest is this. Keep a single ‘history’ table that holds all of the records for every user, a timestamp, and a description of the action along with flags (or predefined keys) for what type of action occurred. This would allow you to query a single table selectively for certain types of actions and within a set frame of time to display. However, with a lot of users this table will grow quickly so you may consider purging old data that you know you will not use again later. Pay close attention to indexes to keep the queries fast, and consider using query caching since you will probably be generating the same results frequently.

    As long as you aren’t planning on using this historical data for auditing users actions then it should be fine to dump it after a while. If you do need an audit trail then you may need to consider creating a temp_history table for showing recent actions and then in a CRON move their recent actions over to a permanent audit table for long term storage.

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

Sidebar

Related Questions

I want to use Share on Facebook feature, instead of new FB Like, in
what is the right way to do user activity logs like how facebook does
I want to know, how to implement shake to refresh feature. For example, facebook
I've been able to properly implement the Facebook Like Button for my WordPress single.php
can any one give the demo how to implement facebook like box( single sign
I need to implement a Facebook-style multiple image uploader in my PHP application. It
How can implement reordring in winforms datagridview by using the feature of drag and
How I can implement dynamic Jtree, which shows created instances of clases? For example,
I am trying to make an application which integrates facebook and twitter. I have
I am developing a web application that displays images. I would like to display

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.