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

    • Icon: Incident report Incident report
    • Resolution: Workaround proposed
    • Icon: Blocker Blocker
    • None
    • 2.2.8, 2.4.3
    • Frontend (F)

      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.

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

              Created:
              Updated:
              Resolved: