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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:27:34+00:00 2026-06-03T17:27:34+00:00

What I’m looking to create is a follower / following system where instead of

  • 0

What I’m looking to create is a follower / following system where instead of simply following a user, you’re following sections of content they share. Almost as if you were following Twitter’s “Lists” or Groups rather than the people. Though, with this you’d be able follow/unfollow everything a user is sharing or just follow/unfollow the lists that you want.

Ex #1: I click a “follow all” button to follow User #1’s lists but unfollow the one about politics. Now I’m following all of what they are sharing except one list. I am a follower of them.

Ex #2: I follow only one of User #2’s lists instead of clicking the “follow all” button. I should only see the one list and not all of their lists.

The structure for a simple follow/following system may be a table with user_id => follower_id schema, but that wouldn’t account for the new lists created by the user that one follows.

Question: What database schema would suit this best?

  • 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-03T17:27:37+00:00Added an answer on June 3, 2026 at 5:27 pm

    To simplify it and to help it scale, I would think of it as a mapping of list_id => follower_id with a helper table that is a mapping of user_id => follower_id

    The only thing the helper table would let you know is that if the user creates a new list, it tells you what list_id => follower_id mappings you need to create. It basically just serves as a setting for the follower. (Ex: Automatically follow X user’s new lists)

    When you are displaying the feed to the follower you would only access the table that has the map list_id => follower_id. You wouldn’t even need to look up the user_id => follower_id mapping. That only comes in to play when a new list is created.

    The biggest problem here is that you have to handle the case where the follower says “Follow All”/”Follow User” for the first time. In this case you would backfill all of the list_id => follower_id mappings based on what lists already exist for that user. (I believe this is similar to how Twitter handles their following model. If I start to follow someone it backfills an X number of their tweets and if I unfollow it removes an X number of their most recent tweets)

    Then, if the user wants to exclude a list, you just remove the mapping for that specific list to that follower. You can leave the mapping of user_id => follower_id in this case because I’m assuming you want any new lists the user creates to show up for the follower.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm trying to create an if statement in PHP that prevents a single post
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.