Slow configuration sync performance due to items table re-reading

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • 7.0.4rc1, 7.2.0alpha1
    • Affects Version/s: 7.0.1, 7.0.2
    • Component/s: Server (S)
    • None
    • S24-W34/35
    • 1

      Following query is redundant and is performed every 10 seconds without using changelog which leads to IO every 10 seconds on installations with limited resources:

      select i.itemid,i.hostid,i.templateid from items i inner join hosts h on i.hostid=h.hostid where h.status=3;
      

      Also this query is redundant and slow down configuration sync:

      select i.itemid,i.hostid,i.templateid from items i where i.flags=2
      

      Item tables is already retrieved later with changelog, so there is no need to read this data in separate queries specially with table that can be so large.

            Assignee:
            Vladislavs Sokurenko
            Reporter:
            Vladislavs Sokurenko
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: