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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:20:25+00:00 2026-05-17T16:20:25+00:00

I have a classifieds website, and I am thinking about redesigning the database a

  • 0

I have a classifieds website, and I am thinking about redesigning the database a bit.

Currently I have 7 tables in the db. One table for each “MAIN CATEGORY“.
For example, I have a “VEHICLES” table which holds all information about the following categories of classifieds:

   cars
   mc
   mopeds/scooters
   trucks
   boats
   etc etc

However, users on the website usually search in specific categories. For example, the user chooses the “cars” category to search in, and enters a keyword.

My code today, will search the entire VEHICLES table for all records with the field “category” equal to “cars”, and then get their details:

 "SELECT * IN vehicles WHERE category='cars' AND alot of other conditions" // just for example, not tested

I am thinking about making a table now, for each of these “sub-categories”.
Ie, one for cars, one for mc, one for trucks etc, so that search isn’t done through information which isn’t needed.

Will this increase search speed? Because I have calculated that I will need atleast 30 or so tables for this.

Thanks

  • 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-17T16:20:25+00:00Added an answer on May 17, 2026 at 4:20 pm

    With a properly indexed table and a “reasonable” number of rows, you will not gain much speed from this approach. Anything you gain in speed of execution you will lose in time-to-market because your programming will become more complicated.

    Do not perform this optimization unless and until you encounter a performance problem in testing with a representative set of data.

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

Sidebar

Related Questions

I have this classifieds website, and I have about 7 tables in MySql where
I am making a classifieds website... I have these 6 tables: Every category has
I have a classifieds website. Each classified is linked like this originally: mydomain.com/ad.php?ad_id=Bmw_M3_M_tech_113620829 What
I have a classifieds website where users may sell/buy just about anything... My issue
I have a classifieds website, and inside each classified, there is a small form.
I have a classifieds website, and on each classifieds page, there is a form
I have around 100thousand rows in a mysql table, where each row has about
I have a classifieds website... Each classified is displayed in a php page called
I have a classifieds website, and I have currently around 100thousand ads in a
I have a classifieds website, and it is using MySQL as a database. My

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.