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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:28:02+00:00 2026-05-25T18:28:02+00:00

I have a fairly large database containing a number of different tables representing different

  • 0

I have a fairly large database containing a number of different tables representing different product types (eg. cars; baby strollers).

I’m using a website built with PHP to access the data and display it, and I allow users to filter the data (typical online product database sort of stuff).

I’m not sure if I went about storing my metadata the correct way. I’m using XML to do a lot of stuff, which requires making a product type table in MySQL first, and then adding information about each of the columns in that table in my big XML “column attribute” file. So I’ll have the name of each column listed in the XML table with information about the column. I store localized names for the column in the XML file, and indicate what type of information about the product is being stored in the column (e.g. Is a column showing a dimension (to be listed in the product dimensions area) or a feature (for the features area)).

First off, am I way off base storing all this custom metadata in XML?

Secondly, if I should be storing some of it in MySQL (and I think I should be moving some of it there), what’s the best way to do that? I see that I can make column “comments” in MySQL….are those standard fare for databases? If I move to Oracle some day, would I lose all my comment info? I’m not thinking of moving much information to the database, and some of it could be accomplished by just adding a little identifier to my column names (e.g. number_of_wheels becomes number_of_wheels_quantity, length becomes length_dimension)

Any advice from the database design gurus out there would be vastly appreciated. 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-25T18:28:03+00:00Added an answer on May 25, 2026 at 6:28 pm

    First off, am I way off base storing all this custom metadata in XML?

    Yes, XML is a great markup for transporting data in a nearly human readable format, but a horrible one for storing it. It’s very costly to search through XML, and I don’t know of a (good) way to have a query search through XML stored in a field in the DB. You are probably better off with a table that stores these things directly, you can easily convert them into XML if you need to, after you query them from the DB. I think in your case a table with the following columns would be useful: "ColumnName","MetaData" Would be all you need, populate with values as per your example:

    __________________________________________________________________________________________________
    |colDimension    | Is a column showing a dimension (to be listed in the product dimensions area) |
    |colFeature      | a feature (for the features area)                                             |
    --------------------------------------------------------------------------------------------------
    

    This scheme will resolve your comments conundrum as well, as you can add another field to the above table to store the comments in, which will make them much more accessible to your middle tier (php in your case) if you ever want to display those comments.

    I had to make a few assumptions as to intent and existing data and whatnot, so if I’m wrong about anything, let me know why it doesn’t work for you and I’ll respond with some corrections or other pointers.

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

Sidebar

Related Questions

I have a fairly large SQL Server database; I'd like to pull 4 tables
I have a MySQL database with a fairly large table where the products are.
I have a fairly large PHP codebase (10k files) that I work with using
I'm using NHibernate and Microsoft Access. My database file is fairly large ( ~500
I'm searching a fairly large article database using full text search in mysql and
I have compared two queries which fetch some fairly large data from a database
I have a fairly large mysql database and I would like to count all
I'm using LINQ to SQL to search a fairly large database and am unsure
I have a fairly large EF4 model, using POCO code gen. I've got lots
So I have a fairly large database of ~800,000 members I want to run

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.