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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:34:03+00:00 2026-06-10T09:34:03+00:00

I guess this question is quite basic, but imo those are the hardest. So

  • 0

I guess this question is quite basic, but imo those are the hardest.

So lets say I want to create a table about the extras cars can have, and lets say they are 5, so the cars could have, none, all, one or some of those extras.

Is it recommendable to use the set() field with the 5 options? seems the logic way to do it but I’ve read that set() fields are not friendly with searches in big databases.

The other options I had in mind are:

  1. To have a foreign key to a table with the car’s id and each of the extras(so that would make 5 rows if the car has all the extras)

  2. Having 5 extra boolean columns for each extra in the original
    table.

Which would be the best way, considering the database/table would be big?

  • 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-10T09:34:04+00:00Added an answer on June 10, 2026 at 9:34 am

    It doesn’t sound logic way to me. It could make sense to use a SET() for continents but not car extras. Extras are expected to change in time and you don’t want to alter your application and database design every time that happens. The obvious design is to create a table for extras and link it via foreign key.

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

Sidebar

Related Questions

This question is about Unity Container but I guess it is applicable to any
I guess this is not quite a programming question, but it is bothering me
I guess this is quite a strange question about models transformation. I am starting
I guess this is a quite simple (read: very simple) question, but I have
I guess this question will sound familiar, but I am yet another programmer baffled
My guess is that this question will fall under the category of duh, but,
I guess this is kind of an odd question but I have tried setting
I tried to ask this question before but I guess I didnt explain myself
I'm a fan of C# but I guess this is an OOP question in
This question in mainly pointed at C/C++, but I guess other languages are relevant

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.