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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:30:19+00:00 2026-06-11T13:30:19+00:00

I am currently creating an auction site, where it should be possible to create

  • 0

I am currently creating an auction site, where it should be possible to create an auction of one or more products. This should be managed with some different variations of products.

My problem is, that I’m not sure if I have build the best MySQL structure for handling the stock management. Here is how my DB looks:

Attributes
AttributeValues
Combinations
CombinationParts

Here I will have the following connections:

Attributes is the "main" name of the attribute - e.g. "Size", "Colour" or so. This has a
ProductID (connecting it to a product).

AttributeValues is the value - e.g. "43", "44", "45"... 
I connect this to Attributes on a field called AttributeID.

Then I will create some combinations – e.g. if a shoe has more attributes a Combination will be made.

Combinations has the name and stock of the product - connected 
to a product on ProductID
- e.g. "Nike shoe, red, 43" or "T-shirt, blue, Large".

CombinationParts is then connecting to a product with an AuctionID and then 
to a AttributeValue with AttributeValueID.

EDIT: The reason I connect the stock to each product is, that I need to make it possible to connect more products to an auction

The idea is, that when you create an auction you type in how many of each type, there is in stock.

My problem is wheter I could make the same easier? In other words: Is this optimal when I need to scale my site to maybe containing 25,000 products?

  • 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-11T13:30:21+00:00Added an answer on June 11, 2026 at 1:30 pm

    Having a key-key-value table (product X, “brand”, “nike”) is a good way of dealing with attributes and values when the set of possible attributes is unknown. It can be clumsy when querying sometimes, but it’s much easier to maintain.

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

Sidebar

Related Questions

I am currently creating an application for compiling multiple java projects in one go
I'm currently creating a neighbourhood graph by doing roughly this: for every voxel look
Hello I'm currently creating a mobile site for a business. And I wanted to
At the moment, I am creating some kind of admin panel/backend for my site.
I'm having some difficulty creating nested objects between a one-to-many relationship. My models are
Currently im trying out the application managed persistence context, by creating the entity manager
I am currently creating a mobile version of my company's site and using it
Every page in my site should have some of the same data, similar to
I'm currently creating an auction website using asp and vb.net. I want to manipulate
A little background first as to why I need this. I am currently creating

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.