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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:01:27+00:00 2026-05-18T11:01:27+00:00

This is a more theoretical question, not a specific scenario: Let’s assume, we have

  • 0

This is a more theoretical question, not a specific scenario:

Let’s assume, we have a simplified table scheme like this:

alt text

items contains some basic data, item_data additional properties for each item an rel_items sets a tree relationship between the different items. There are different types of items (represented by the field items.item_type) which have different fields stored in item_data, for example: dog, cat, mouse.

If we have some bigger queries with some joins and conjunctions (stuff like getting items with their parent items having some conditions with other items and so on), could this become a performance issue compared to splitting all different types of items into separate tables (dog, cat, mouse) and not merging them into a single one?

If we keep it all in one basic item table, does creating views (dog, cat, mouse) impact performance somehow?

edit (as commented below): I thought of “species”, “house-pets” and so on as item_types. Each type has different properties. The intention of using a basic item table and the item_data table is to have a basic “object” and attaching as many properties to them as necessary without having to modify the database scheme. For example, I don’t know how many animals there will be in the application and what properties they have, so I thought of a database scheme that doesn’t need to be alterted each time the user creates a new animal.

  • 1 1 Answer
  • 3 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-18T11:01:27+00:00Added an answer on May 18, 2026 at 11:01 am

    If we have some bigger queries with some joins …, could this become a performance issue compared to splitting all different types of items into separate tables (dog, cat, mouse) and not merging them into a single one?

    No.

    If we keep it all in one basic item table, does creating views (dog, cat, mouse) impact performance somehow?

    No.

    Separate tables means they’re fundamentally different things — different attributes or different operations (or both are different)

    Same table means they’re fundamentally the same things — same attributes and same operations.

    Performance is not the first consideration.

    Meaning is the first consideration.

    After you sort out what these things mean, and what the real functional dependencies among the items are, then you can consider join performance.

    “Dog, cat, mouse” are all mammals. One table.

    “Dog, cat, mouse” are two carnivores and one omnivore. Two tables.

    “Dog, cat, mouse” are two conventional house-pets and one conventional pest. Two tables.

    “Dog, cat, mouse” are one cool animal and two nasty animals. Two tables.

    “Dog, cat, mouse” are three separate species. Three tables.

    It’s about the meaning.

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

Sidebar

Related Questions

This is more of a theoretical question than an actual problem I have. If
This is more of a theoretical question rather than language specific, but I'm mostly
this is more theoretical question. I have written simple chat with my friend. We
I have a label on my asp.net page, it looks like this: more info
This is more of a design question. I have a template class, and I
This is a more theoretical question about macros (I think). I know macros take
This is a theoretical question, so expect that many details here are not computable
This is more a theoretical question than a practical one, but given I undestand
This is more of a theoretical question. Should logging reside within a class who's
Another translation question, this may be more theoretical, but I am curious as to

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.