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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:19:53+00:00 2026-05-29T21:19:53+00:00

Excuse my lack of knowledge. Im creating a a php/mysql website which will store

  • 0

Excuse my lack of knowledge. Im creating a a php/mysql website which will store records for adverts for various cars. Each advert record will contain a car model and car make data as well as description, price etc…

On my create advert form I have 2 select fields to lookup car make and model from tables which contain an id and car make for all makes, and an id, car make and car model for all models.

My question is when I am selecting the data on the advert create form is it best to get the id, and car make, then just store the “id” in my advert table, or should I store the actual “car make” and “car model” in my advert table in my database?

im presuming just the id’s would be quicker for searching purposes, then when I lookup the data to display, I would then need to get the id and do a join on the car make and model tables to get the car make and model descriptions to display.

Would this be far better for performance? or would it make no difference than just storing the car make and model in every advert record, so I didnt need to do the join to display them later?

  • 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-29T21:19:55+00:00Added an answer on May 29, 2026 at 9:19 pm

    What you are talking about is database schema (de)normalization. I would strongly recommend storing IDs and doing JOINs when fetching data. Then somewhen down the line, after you have much much much & much traffic you can start thinking about denormalizing your schema (ie including stuff “inline” … for performance reasons).

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

Sidebar

Related Questions

I'm very new to HTTPS/SSL so excuse my lack of knowledge. Right now I'm
Excuse my lack of html knowledge, but is it possible to set up a
Please excuse my lack of knowledge here but could someone let me know how
Please excuse my lack of knowledge on this issue as this question as it's
I'm fairly new encryption and decryption so please excuse my lack of knowledge in
Excuse my ignorance. My knowledge of regular expressions is extremely limited. I have the
Excuse the terrible question title. I have this PHP string and want to check
I am new to javascript, so excuse my lack of actual code. I have
I am currently working an a webapp, using mongoengine and django, which will require
I'm a really rookie to Tkinter so excuse my lack of vision here. What

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.