poleposters Posted April 11, 2008 Share Posted April 11, 2008 Hi, At the moment I have around five tables that are normalised. I have one particular query which is used repeatedly on my site,hundreds of times more often than any other query, which involves joining the 5 tables and extracting data from one column in each table. Would it be better to have the data required for this query duplicated in another table to save resources? Or should I leave it as is? Quote Link to comment Share on other sites More sharing options...
paul2463 Posted April 11, 2008 Share Posted April 11, 2008 in my opinion just leave it, the reason you normalise tables is to save duplication of information and therefore disk space queries run very fast and the fact that you pull information from all five tables in one query should not make you think of duplicating information, there comes a time when you want to remove all the duplicate information and finding it may be difficult as I said in my humble, lack of proper, experience Quote Link to comment Share on other sites More sharing options...
fenway Posted April 11, 2008 Share Posted April 11, 2008 Hi, At the moment I have around five tables that are normalised. I have one particular query which is used repeatedly on my site,hundreds of times more often than any other query, which involves joining the 5 tables and extracting data from one column in each table. Would it be better to have the data required for this query duplicated in another table to save resources? Or should I leave it as is? That depends on the nature of the table, the column you're extracting, and how the query performs... post the EXPLAIN. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.