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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:50:07+00:00 2026-05-28T14:50:07+00:00

I am making a website where there are different types of items such as

  • 0

I am making a website where there are different types of items such as blogs, posts, articles and so on. A user can set any one of them as his/her favorite. Now when I approach this thing, I have two options

  1. Make a table for user favorites for each type of object.
  2. Make a common table for all type of objects for all the users.

The problem with the 1st structure is that I will have to query a lot of tables for displaying the favorites of a particular user. But it will allow me to easily group the favorites into different categories.

However if I have to show all the favorites on one single page and merge them all, sorted according to time, then that becomes difficult. But if I use the second model, I can easily get the latest favorites, and also grouping them according to object type is not difficult, but I will have one large table site wide.

Which of the two strategies will be more scalable.

The 1st one entails multiple database queries, and the second one
entails a large single table.

If it helps, I am using MySql

  • 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-28T14:50:08+00:00Added an answer on May 28, 2026 at 2:50 pm

    It seems that you already know the answer, but remember, keep the systems you design simple to modify as business models always change over time or they eventually fail (it’s a generalization but you get the idea). A corollary of that is if you make a rigid model, fast or slow, it’s rigid, changes will be harder and the end user won’t see the difference, hence no money/happiness change is achieved, unless it’s a very bad change.
    Your problem is not technical in a way a query works on the engine but more of a philosophical one, easy changes versus apparent speed.
    Ask yourself, what’s the advantage of having a normalized database? Think about a clean architecture and design, performance is the least problem in todays world as processing is cheaper and storage also. But design is expensive.
    Normalization was made to make systems that don’t depend on last moment decisions but on a structured design process.
    Big tables are not a big deal for MySql but they are a big deal to maintain, modify and expand. It’s not just adding one more column, it’s about the rigid structure of the data itself. Eventually in time you will just add columns that contain indexes, and those indexes will be pointing to small tables. MySql will be plowing it’s way around all that data anyway.
    So i’ll go for the first one, a lot of small tables, many-to-many.

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

Sidebar

Related Questions

Is there any standards/guidelines/good practices for making websites with support of different content and
For school i'm making a website for a mobile. There are multiple columns, 1
Making websites that appear correctly in IE is a big problem. Is there any
I'm making a website that tend to handle all the request in one page
I am currently making an app and website. Is there a system around that
I set a magento website with several stores, I'm making a list of all
I'm making a review type website, and I would like for there to be
I am making a Silverlight 4 website with C#. In one of the pages,
I'm making a form to order different varieties of sweets from a website. At
I was making a website for a music band, and i was wondering the

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.