Re: Seemingly Simple Query Takes Much Too Long
At first, I don't see any MyISAM specific here and I'm not a real SQL wizard.
Second, it is good that you did an EXPLAIN. Can you please add SHOW CREATE TABLE of the tables? Can you please add the output of the "slow query log"?
Third, your table definitions seem to say that the primary keys are (uid,serv_id), while you use concat(serv_id,uid). A SHOW CREATE TABLE would clarify, if this was just a typo. If it is not a typo, then your primary keys are useless here (the EXPLAIN type of 'ALL' seems to second that). Try to reverse their definitions.
Subject
Views
Written By
Posted
8268
May 27, 2005 02:56PM
Re: Seemingly Simple Query Takes Much Too Long
3821
May 30, 2005 01:59AM
3468
June 01, 2005 11:08AM
3254
June 02, 2005 01:58AM
2833
June 02, 2005 10:24AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.