-
Type:
Incident report
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: 1.6
-
Component/s: Frontend (F)
-
None
-
Environment:RHEL5, MySQL 5.0.45
The events component in a screen is slow to generate because of an inefficient query on the MySQL database. An event list of the last 10 items takes about 5 seconds to generate.
I checked the MySQL query log and saw that Zabbix executes a very large statement on the database and verified that this statement is the statement that takes a while to finish. See attached query.txt. The entire query is 14kb ! I suspect this could be done more efficiently, to speed up the GUI's response.