我想優化我的mysql數據庫,從而啓用my.cnf中的mysql慢查詢開關。我所看到的是許多sys_log查詢,包括來自我的擴展或其他許多表的查詢。這是一個緩慢的查詢?我怎麼能夠勝過它?爲什麼我的慢查詢日誌中有這麼多擴展表?
# Query_time: 0 Lock_time: 0 Rows_sent: 538 Rows_examined: 23611
SELECT sys_log.event_pid, sys_log.recuid, sys_log.tablename, sys_log.userid,
sys_log.tstamp, be_users.realName, be_users.email FROM sys_log, be_users WHERE
sys_log.tablename IN
('tx_templavoila_datastructure','tx_templavoila_tmplobj','tx_chsystemrecherche_mo','tx_chsystemrecherche_s2','tx_chsystemrecherche_s3','tx_chsystemrecherche_s1','tx_chsystemreche che_da','tx_chsystemrecherche_de','tx_chsystemrecherche_wa','tx_chsystemrecherche_tb','tx_chsffoeag_fund','tx_charbeitsbeispiele_maxmedia','tx_chsammelstellen_plz','tx_chtreeview_example','tx_chspeditionsliste_route','tx_chspeditionsliste_k','tx_chhaendlersuche_plz','tx_veguestbook_entries','tx_lastupdate_custom','tt_content') AND sys_log.details_nr != 0 AND sys_log.userid = be_users.uid ORDER BY tstamp DESC LIMIT 0,1000;