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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:53:22+00:00 2026-05-13T18:53:22+00:00

I have a classifieds website. I am using SOLR for indexing and storing data.

  • 0

I have a classifieds website.
I am using SOLR for indexing and storing data. Then I also have a MySQL db with some more information about the classified which I dont store or index.

Now, I have a pretty normalized db with 4 tables.

Whenever ads are searched on the website, SOLR does the searching and returns an array of ID_numbers which will then be used to query mysql.
So solr returns id:s, which are then used to get all ads from the mysql db with THOSE id:s.

Now, all the JOIN and relations between my tables gives me a headache.

What except for maintanance-ease do I get for having a normalized db?

I could you know, store all info into one table with some 50 columns.

So instead of this for finding one ad and displaying it:

SELECT 
  category_option.option_name,
  option_values.value 
FROM classified, category_option, option_values 
WHERE classified.classified_id=?id 
AND classified.cat_id=category_options.cat_id 
AND option_values.option_id=category_options.option_id

I could use this:

SELECT * FROM table_name WHERE classified_id = $classified_id

Isn’t the last one actually faster?
Or does a normalized db permform faster?

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-13T18:53:23+00:00Added an answer on May 13, 2026 at 6:53 pm

    I would advise against denormalizing in your situation. You’ll get better with joins as you use them more and they start to become clearer in your head, and maintenance ease is a good benefit for the future.

    Here‘s a pretty good link about normalization (and denormalization). Here‘s a question about denormalization. One answer suggests creating a view using joins to get the data you need, and using that like your SELECT * FROM table_name WHERE classified_id = $classified_id query. A normalized DB will likely be slower, but it’s unlikely you’ll want to denormalize for that reason. I hope this provides some help.

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

Sidebar

Related Questions

I have a php classifieds website (mostly) and I am currently using MYSQL as
I have a classifieds website, and it is using MySQL as a database. My
I am about to finish up my dynamic classifieds website (php) and have some
I have a mysql database which I support using phpMyAdmin. The website this is
I have a classifieds website, and I am thinking about redesigning the database a
I have a classifieds website, and I am about to create a members login
I have a classifieds website, and I have currently around 100thousand ads in a
I have a classifieds website where users may search ads. I wonder if I
I have a classifieds website, where users can search for items. The search should
I have a classifieds website. The users first have to specify their 'area of

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.