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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:31:22+00:00 2026-06-11T22:31:22+00:00

Obviously this question is impossible to answer without more information, so let me expand.

  • 0

Obviously this question is impossible to answer without more information, so let me expand.

Im building a stores database with about 1000 stores

They are divided into 13 major categories of products.

Those 13 major categories each have about 4 or 5 sub categories

Those 4 or 5 (about 65 total) each have about 4 or 5 of their own.

What ive done is make a table for every single parent and its direct children. And then tables for each of its children and their children.

In terms of logic, it will meet my programming needs, but i am wondering if this it completely unorthodox to have this many tables and if there is a better way to do it.

Also wondering if that many tables will overload/lag the system when querying.

I could have done the entire thing in like 2 tables, where i just assigned a parent_id to each category, but from a visual perspective that didnt look very organized or hierarchal, whereas this is like a perfect tree.

  • 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-11T22:31:23+00:00Added an answer on June 11, 2026 at 10:31 pm

    Use a relational database structure (with one-to-many or many-to-many relations) with proper indexing. Having a separate table for each category does not make any sense logically – this is why relational databases were invented.

    Your solution should work, but in a datamatic sense, it’s not very good practice.

    To get more specific

    A database structure like

    TABLE categories:
    id  title   parent_id(NULL)
    

    Then sort the result you get from this using some recursion in PHP.

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

Sidebar

Related Questions

This is obviously a rookie question about Adobe technologies, but I am seeking a
I'm sure this is a easy question, my Google-fu is obviously failing me. How
I realize that the answer to this question is likely quite obvious (if somewhat
Please forgive the simplicity of this question. The answer will be obvious to many
I recently posted this question about codes for a gift-card-like voucher that users can
I could not find the answer to this exact question but there are related
EDIT Public health warning - this question includes a false assumption about undefined behaviour.
My jQuery fu is new, so forgive the obvious if this question is indeed
This question may seem blindingly obvious and I realise I am putting myself up
I am a newbie to C++, and this question may seem obvious to a

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.