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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:35:09+00:00 2026-06-04T13:35:09+00:00

My problem is I have a bunch of ‘objects’. These objects can have a

  • 0

My problem is I have a bunch of ‘objects’. These objects can have a list of words of up to 3 words and can also have none. For mysql I already have a row per each object and im trying to figure out how to incorporate the words. Here are my approaches:

1: i have 3 extra columns for each word. This though leaves empty, redudant cells when there aren’t 3 words.

2: have 1 column with each word seperated by a space in that column. This leaves a redundant cell when there are no words and also requires extra processing

3: make another table to hold the words with a reference number that refers it to it’s corresponding object. This requires an extra query but in my opinion has the lowest redundancy.

Advice?

  • 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-04T13:35:11+00:00Added an answer on June 4, 2026 at 1:35 pm

    I would always go for #3 using an extra table. This ensures in the future if you need to do any “Word” search using SQL across all objects or change the structure to add more words or reduce words then there wont be any hiccups. Additionally, these additional queries are normally very less burden for a RDBMS server. Also, all the other options will also require some sort of processing from PHP (assuming it is the coding language) which will also consume some CPU cycles. But since #3 will scale well in the future, I shall prefer to go with #3.

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

Sidebar

Related Questions

Here's my problem. I have a bunch of figures already written in a LaTeX
I've seen that a few instances of this problem have been raised already. However,
I've been trying to write an extend function so I can have bunch of
I've found a bunch of posts on this problem and have actually managed to
Here's a simplified version of a problem I'm working on: I have a bunch
I can't find the type of problem I have and I was wondering if
I have a problem concerning Ajax and Jquery. I have a bunch of <li>
Here is my problem: I have a bunch of circles that I need to
My problem is that I have a bunch of file names without the version
Here is my problem. I have a bunch of Configuration classes that get serialized

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.