Events component on a screen is slow to load due to ineffecient mysql query or queries

XMLWordPrintable

    • 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.

        1. query_output.txt
          256 kB
          Jasper Spit
        2. query.log
          14 kB
          Jasper Spit

            Assignee:
            Alexei Vladishev
            Reporter:
            Jasper Spit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: