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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:14:49+00:00 2026-05-21T18:14:49+00:00

This is kind of a strange question, but I will try to explain it

  • 0

This is kind of a strange question, but I will try to explain it to the best of my ability.

Let’s say I have the following two tables:

table: cars

+---------------+------------+----------------+--------------+
|     color     |    size    |    capacity    |    origin    |
+---------------+------------+----------------+--------------+

table: users

+----------------+---------------+--------------------+-----------------+
| desired_colors | desired_sizes | desired_capacities | desired_origins |
+----------------+---------------+--------------------+-----------------+

Obviously the cars table will consist of unique cars with color, size, capacity and origin.

In the users table, there will be user selections of multiple colors they want, multiple sizes they want, multiple capacities they want and multiple origins they want.

Now, I’m wondering the best way to achieve a ‘match score’ between a users desired traits and each vehicle. This way, users can see the top matches of cars that they want.

I have a few ideas on how I would do this, but I was wondering what everyone here thought was the best way to go about something like this. I’m thinking the best way is to have a ‘matches’ table showing a match between a user_id, car_id and a match_score — but I’m not sure how and when I would run these calculations and save this data. Another thing to think about is if I decide to change the criteria for scores.

Anyways, I know this is a weird question and I might not get many answers, but just hoping to stir the pot and see if anyone has any good ideas.

Thanks all 🙂

  • 1 1 Answer
  • 2 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-21T18:14:50+00:00Added an answer on May 21, 2026 at 6:14 pm

    I would just determine my matches in a query, rather than store it in a table. If your dataset is expected to be huge, it may be more efficient to pre-calculate matches, but in all likelihood, it would be premature optimization. So, what I would do is load the desired features when the user logs in, then run a query such as this:

    select *, 
    if(color in ('green', 'red', blue', ...), 10, 0)
     + if(size in (...), 10, 0)
     + if(capacity in (...), 10, 0)
     + if(origin in (...), 10, 0) as score
    from cars
    where color in ('green', 'red', blue', ...)
    or size in (...)
    or capacity in (...)
    or origin in (...)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is kind of a strange title, so let me explain: We have a
Okay, so this might be kind of strange but here's the question: I have
Kind of a strange question. Say I have the following dictionary: dict = {'1':'123','2':'1234','3':'12345'}
Kind of a strange question, but here is my scenario: I have accidentally added
This is kind of a strange question, but I need to create artificial lag
This may be kind of a strange question, but maybe somebody has an idea...
This is kind of a strange question, but what is the name of the
I have this kind of question. In my form, i got this as a
This situation might seem strange but this is what i have to do: Situation,
I have tried contacting tech support with this question, but it has been over

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.