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

Slow query from events for getting last 20 events

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Workaround proposed
    • Affects Version/s: 2.2.8, 2.4.3
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:

      Description

      SQL (3.979364): SELECT e.* FROM events e WHERE e.objectid='313738' AND e.object='0' AND e.source='0' AND e.eventid<='17241298' ORDER BY e.clock DESC,e.eventid DESC LIMIT 20 OFFSET 0
      screens.php:177 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenHostgroupTriggers->get() ? make_latest_issues() ? make_popup_eventlist() ? CAPIObject->get() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CEvent->get() ? DBselect() in /api/classes/CEvent.php:347
      

      Zabbix does not have index by clock on events table.

      in final the page loads for about 300-400 seconds.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dotneft Alexey Pustovalov
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: