reading http://www.mysqlperformanceblog.com/...porary-tables/ , i noticed the following suggstion :
zabbix uses quite some 'group by', but does not use 'oder by null' - would it make sense to add this at least to some clauses for performance reasons ?
As you can see I'm using ORDER BY NULL clause as otherwise MySQL will sort the data after performing group by which is overhead we're not looking to measure. This is actually good trick to use for cases when you do not need GROUP BY results sorted - it can significantly improve performance in some cases.


Comment