Hi Everyone:
I have a table which has 7 columns. But this table becames really really large. I am thinking that I should split table into smaller table, based on the one of column,called "Item Name".So each Item Name will have its own table with same columns. But in that case, I have to create a lookup table, which stores Item Name and Lookup ID. I use LookupID as Name of each Item Name table...So when I retrieve data, my query will go to lookup table and get lookID...and use LookId to find individual table (in this case, my query is dynamic)...I have tested it, but data retrieve performance has not increased at all...instead it has decreased a bit...I don't really understand...the performance decreasing is becasuse of dynamic query or because of extra data instored in database, or the concept itself is wrong, or my query? Can anyone kindly give me some suggesitons? Thanks alot
I have a table which has 7 columns. But this table becames really really large. I am thinking that I should split table into smaller table, based on the one of column,called "Item Name".So each Item Name will have its own table with same columns. But in that case, I have to create a lookup table, which stores Item Name and Lookup ID. I use LookupID as Name of each Item Name table...So when I retrieve data, my query will go to lookup table and get lookID...and use LookId to find individual table (in this case, my query is dynamic)...I have tested it, but data retrieve performance has not increased at all...instead it has decreased a bit...I don't really understand...the performance decreasing is becasuse of dynamic query or because of extra data instored in database, or the concept itself is wrong, or my query? Can anyone kindly give me some suggesitons? Thanks alot