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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:51:55+00:00 2026-06-04T10:51:55+00:00

I have one (items [id, name, color, size, etc] ) table with more than

  • 0

I have one (items [id, name, color, size, etc] ) table with more than 6000. And i think it can reach 10000 at most.
In that table basically is information about, well, items. I also have 5 constant storehouses’ tables and from 0 to 7 temporary storehouses’ tables.
Those tables are like this (id, item_id, quantity). I tried to normalize that database by combining those storehouses in one table (id, item_id, quantity, storehouse_id). That made searches extremely slow 6-10sec when searching for multiple items from all storehouses using self-joins. Then I decided to combine items with that newly created database (id, name, color, size, etc, storehouse1_quantity, storehouse2_quantity, etc). That made queries less than a 0.1s for any request. But now the database is very denormalized. As storehouses have no more than 2000 items and mostly less than 500.
I can live with that if there is no better way. I don’t know where to look at to make database more logic and easier to maintain.
Any help is appreciated! Thanks in advance!

  • 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-04T10:51:57+00:00Added an answer on June 4, 2026 at 10:51 am

    Well, the normalize approach is the “right” way, and since DB engines are built to deal with this, I’d start looking at what your index arrangement is. If there a lot of lookups/joins, there generally should be an index so that MySQL doesn’t have to chug through all the text.

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

Sidebar

Related Questions

I have a function that, when the user selects one or more items, it
I have a Sandbox which contains plenty of items composed of one or more
I have two tables, one called cart and one called items. Now I want
I have a view for news items and one for events. I want to
I have an SPListItemCollection. I basically want to get one of the items (randomly)
I have a gridview that displays items details, I added two template fields one
The scenario is I have two div s: one is where I select items
We have an item cull that retrieves items and their appropriate data from one
I have a custom listview with three items. One of them is like Add
I have Ext.tab.Panel with few items. One item is login panel of type Ext.form.Panel.From

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.