SQLMon: мониторинг запросов MySQL
Наверное, каждый разработчик знает, что во многих случаях плохая производительность связана с ошибками при проектировании базы данных либо неоптимальными запросами к MySQL (например, в таблице нет индекса, который мог бы использоваться для выполнения запроса, либо запрос использует ORDER BY/GROUP BY, без которых можно обойтись).
WordPress может вывести только список всех выполненных запросов — разработчику придётся запускать каждый [...]
← Вернуться к полной версии записи «SQLMon: мониторинг запросов MySQL»…

Меня зовут Владимир, я программист-фрилансер, специализирующийся на Web-программировании и програмировании под Linux.
По совместительству занимаюсь администрированием LAMP/LNMP-серверов и техническим переводом.






[...] SQLMon: мониторинг запросов MySQL [...]
[...] SQLMon: мониторинг запросов MySQL [...]
Does this plugin actually make mysql recommendations and fix them? I have a mysql bottleneck issue and my server is quite slow right now. thanks
To some extent. It does not give you recommendations but it shows what can cause problems.
For example, please take a look at the attached file: you will see these comments in red: “Using temporary; Using filesort”. Temporary tables and filesort are known to be performance killers (especially on large datasets). If you can get rid of them, you will get a faster query. The next (by importance) is the orange label — ”range”. It means that MySQL has to do several lookups in the index to get all necessary rows.
rangeis OK unless you have a large “x IN (List)” condition or when more than 30% of the rows match the range condition (if you have a large dataset).To summarize: the plugin just simplifies the analysis of the queries but it is the user who has to make the final decision.
PS — if you need help with the query optimization, feel free to ask
query.png
[...] SQLMon: мониторинг запросов MySQL [...]
[...] плагина MySQL Monitor [...]