slow_mysql queries
Posted: Thu Feb 26, 2009 1:44 pm
Ich wurde von meinem Hoster benachrichtigt, dass ich meine MYSQL Abfragen in Ordnung bringen sollte, da ich "slow_mysql_queries" erzeuge.
Ich weiss jetzt gar nicht wie weit das überhaupt s9y relevant ist.
Optimiert und Repariert habe ich die Tabellen bereits.
Hier ein Bespiel der "slow_mysql_queries":
# Thu Feb 26 04:36:04 2009
# Query_time: 4 Lock_time: 0 Rows_sent: 31 Rows_examined: 31
use terrasto_s9yblogctkat;
SELECT *,
`TABLE_SCHEMA` AS `Db`,
`TABLE_NAME` AS `Name`,
`ENGINE` AS `Engine`,
`ENGINE` AS `Type`,
`VERSION` AS `Version`,
`ROW_FORMAT` AS `Row_format`,
`TABLE_ROWS` AS `Rows`,
`AVG_ROW_LENGTH` AS `Avg_row_length`,
`DATA_LENGTH` AS `Data_length`,
`MAX_DATA_LENGTH` AS `Max_data_length`,
`INDEX_LENGTH` AS `Index_length`,
`DATA_FREE` AS `Data_free`,
`AUTO_INCREMENT` AS `Auto_increment`,
`CREATE_TIME` AS `Create_time`,
`UPDATE_TIME` AS `Update_time`,
`CHECK_TIME` AS `Check_time`,
`TABLE_COLLATION` AS `Collation`,
`CHECKSUM` AS `Checksum`,
`CREATE_OPTIONS` AS `Create_options`,
`TABLE_COMMENT` AS `Comment`
FROM `information_schema`.`TABLES`
WHERE BINARY `TABLE_SCHEMA` IN ('terrasto_s9yblogctkat')
LIMIT 250 OFFSET 0
# Thu Feb 26 04:36:41 2009
# Query_time: 19 Lock_time: 0 Rows_sent: 1105 Rows_examined: 1105
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_comments`
# Thu Feb 26 04:36:46 2009
# Query_time: 3 Lock_time: 0 Rows_sent: 952 Rows_examined: 952
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_entries`
# Thu Feb 26 04:37:06 2009
# Query_time: 4 Lock_time: 0 Rows_sent: 11024 Rows_examined: 11024
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_referrers`
besten dank für eure hilfe!
Ich weiss jetzt gar nicht wie weit das überhaupt s9y relevant ist.
Optimiert und Repariert habe ich die Tabellen bereits.
Hier ein Bespiel der "slow_mysql_queries":
# Thu Feb 26 04:36:04 2009
# Query_time: 4 Lock_time: 0 Rows_sent: 31 Rows_examined: 31
use terrasto_s9yblogctkat;
SELECT *,
`TABLE_SCHEMA` AS `Db`,
`TABLE_NAME` AS `Name`,
`ENGINE` AS `Engine`,
`ENGINE` AS `Type`,
`VERSION` AS `Version`,
`ROW_FORMAT` AS `Row_format`,
`TABLE_ROWS` AS `Rows`,
`AVG_ROW_LENGTH` AS `Avg_row_length`,
`DATA_LENGTH` AS `Data_length`,
`MAX_DATA_LENGTH` AS `Max_data_length`,
`INDEX_LENGTH` AS `Index_length`,
`DATA_FREE` AS `Data_free`,
`AUTO_INCREMENT` AS `Auto_increment`,
`CREATE_TIME` AS `Create_time`,
`UPDATE_TIME` AS `Update_time`,
`CHECK_TIME` AS `Check_time`,
`TABLE_COLLATION` AS `Collation`,
`CHECKSUM` AS `Checksum`,
`CREATE_OPTIONS` AS `Create_options`,
`TABLE_COMMENT` AS `Comment`
FROM `information_schema`.`TABLES`
WHERE BINARY `TABLE_SCHEMA` IN ('terrasto_s9yblogctkat')
LIMIT 250 OFFSET 0
# Thu Feb 26 04:36:41 2009
# Query_time: 19 Lock_time: 0 Rows_sent: 1105 Rows_examined: 1105
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_comments`
# Thu Feb 26 04:36:46 2009
# Query_time: 3 Lock_time: 0 Rows_sent: 952 Rows_examined: 952
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_entries`
# Thu Feb 26 04:37:06 2009
# Query_time: 4 Lock_time: 0 Rows_sent: 11024 Rows_examined: 11024
SELECT * FROM `terrasto_s9yblogctkat`.`serendipity_referrers`
besten dank für eure hilfe!