Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-10163

Bulk update for the item_rtdata table

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 7.0.16
    • Proxy (P), Server (S)
    • None

      Please look into an update of the code to use bulk updates for item_rtdata table.  I have 4978181 rows in the item_rtdata table and replication is getting choked out on all the individual "update item_rtdata set state=1,error='xxxxx' where itemid=9689382" statements.  If you create a temporary table like item_rtdata, then just insert into the temp table up to a set limit of 5k rows, then commit an update item_rtdata join temp on item_rtdata.itemid=temp.itemid set item_rtdata.error=temp.error, item_rtdata.state=temp.state, then do the next 5k chunk until all chunks completed for that cycle.  That should speed up many operations of the database activity.

            wiper Andris Zeila
            timothy.m.newton@windstream.com Tim Newton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: