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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:31:25+00:00 2026-05-19T17:31:25+00:00

So, I’m working on an eCommerce application and my customer wants the ability to

  • 0

So, I’m working on an eCommerce application and my customer wants the ability to create categories and products…obviously. Now, lets say the client will have about 100 categories and 20,000 products.

The client needs the ability to create category properties that make sense for filtering….so, the category Hard Drives might have properties like:

  • Capacity
  • RPMs
  • Form Factor

While the category Projectors might have properties like:

  • Brightness
  • Contrast Ratio
  • Native Resolution

My question is how does one solve the problem of allowing custom properties to be created dynamically, but the ability to use those properties to search, filter and report on?

Creating a seperate table and object for each category isn’t possible since I have no idea what categories they will create (i.e. HardDriveProperties, ProjectorProperties).

I thought maybe I could create an extra column in the database and serialize the custom properties as JSON, but that would still require me to either create a specific properties object for each category to deserialize the JSON into or a generic list of ProductProperties….which I think could be pretty expensive to work with.

How are others solving this problem?

  • 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-19T17:31:26+00:00Added an answer on May 19, 2026 at 5:31 pm

    The Entity-Attribute-Value model (aka ‘open schema’) is one way to solve this problem.

    The essence of the pattern is that you make columns into rows. Instead of HardDrive (and Projector) tables that look like this:

    HardDrive(HardDriveID, Capacity, RPMs, FormFactor)
    ------------------    
    1 1TB 7200 External
    

    You have Category, CategoryProperties, and CategoryPropertyValues tables:

    Category(CategoryID, Description)
    --------
    1 Hard Drive
    2 Projector
    
    CategoryProperties(CategoryPropertyID, CategoryID, Description)
    ------------------
    1 1 Capacity
    2 1 RPMs
    3 1 FormFactor
    4 2 Brightness
    5 2 Contrast Ratio
    ... etc.
    
    CategoryPropertyValues(ItemID, CategoryPropertyID, PropertyValue)
    ------------------
    1 1 1TB
    1 2 7200
    1 3 External
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.