If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mysql cache and performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-06, 08:55
babak77 babak77 is offline
Registered User
 
Join Date: Aug 2006
Posts: 1
mysql cache and performance

Hello all. Well I posted this question at forums.mysql.com but got no answer thought I'd try the experts here

Theoretically speaking, wouldn't combining queries have an adverse effect on performance due to less use of the query cache?

For example, let's assume we have three tables: A, B, and C. Table C gets updated frequently while table A and B do not. Now is it not correct to conclude that..

A query, which SELECTS results from all three tables would have to execute in its entirety (ignoring query cache) every time table C gets updated. However, having three different queries in your code would register two query cache hits (table A & B queries) and only the table C query would execute often.

The reason I ask is that I've been working to combine queries for better performance but now I'm thinking I should avoid complex queries which use multiple tables (since some of those tables get frequent updates).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On