Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6015

Much slow query for latest 20 issues

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 2.0.5rc1, 2.1.0
    • Frontend (F)
    • MySQL

      The next query is very slow:

      SQL (45.793777): SELECT DISTINCT s.*,hg.hostid FROM scripts s,hosts_groups hg
      WHERE (hg.groupid IN (17,20,113,9,8,41,18,16,10,13,73,14,11,15,12,7,19,6,51,22,4)
      AND hg.groupid=s.groupid) OR (s.groupid IS NULL AND scriptid BETWEEN 000000000000000 AND 099999999999999)
      ORDER BY s.name
      make_latest_issues() > CAPIObject>getScriptsByHosts() -> CAPIObject
      ->__call() -> czbxrpc::call() -> czbxrpc::callAPI() -> call_user_func()
      > CScript>getScriptsByHosts() > CScript>get() -> DBselect()

      Look comment.

            dotneft Alexey Pustovalov
            dotneft Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: