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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:25:39+00:00 2026-06-11T03:25:39+00:00

This is not exactly a question, but I am just looking for an opinion

  • 0

This is not exactly a question, but I am just looking for an opinion on this matter.

I am doing my first work with a company. They asked me to optimize their mysql db full text search.

Now, as soon as I saw the database structure, I literally changed face expression.

It is a car parts database, and they have like 1 table and 3 columns: ID, part_number, xml.

Am I just stupid not to understand this, or are they for putting ALL, and I say ALL the information about each different product inside an ENORMOUS xml text? I just don’t get it, and want a clarification. Could they have not put each different information regarding that product (say like: color, size, manufacturer, etc.) inside each different column? Or use an object based unrelational DB (like Mongo)? Is it a ‘normal’ practice to use this to enable a “full-text” search on an XML text to return the relevant item?

Please enlighten me, either I am really stupid and don’t get it, or that DB is a complete non-sense.

Thanks in advance.

  • 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-11T03:25:40+00:00Added an answer on June 11, 2026 at 3:25 am

    The problem they get is that the number of attributes for different parts is a never ending list, some of them are common for many parts, some of them are not. If you attempt to put a column per attribute then you end up with thousands of columns – there are some technolgoies to deal with that in some RDBMS – sparse columns / tables.

    An alternative is to normalize out the attributes onto an attribute table where you are storing part_id, attribute, value – which becomes a very large key-value table, and will rapidly grow in cardinality – and potentially some of these values are different types, and could be quite large. They will also duplicate, so you could normalize out again and then realize you have gone down a rabbit hole of painful performance and horrid scenarios where you have multiple value fields for different types or have to store a variant data type.

    The final alternative is to FTS a field / store XML – which is what you found someone chose.

    Someone made a choice, perhaps first time you may see it in an RDBMS, but probably not the last – whilst you are in a relational storage – consider how you would of done it differently to the original author (within the restriction of an RDBMS).

    It’s always a nasty problem to store attribute information for items with disparate attributes – I’ve seen all three options taken by people in the past.

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

Sidebar

Related Questions

Probably someone has already asked this question but I'm not sure what I'm looking
this is a silly n00b question but i just don't get it to work.
First of all there is a partial question regarding this, but it is not
This is not exactly homework but it is related to my studies: A grammar
Not exactly sure how to look this up, but I'm not finding the solution
Not exactly about programming, but I need help with this. I'm running a development
Similar to this thread, but not exactly: How To Cache Information In A Threadsafe
I was just wondering this the other day. I am not exactly sure how
Not sure exactly what I need to do to make this work, so my
I'm not sure exactly where this is happening, but what I'm trying to do

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.