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

dbConditionInt function should use foreach loop insted of cursor operations to not copy input array

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: API (A)
    • Labels:
      None

      Description

      function dbConditionInt($fieldName, array $values, $notIn = false) {

      to iterate over $values array foreach statement should be used, because current implementation with cursor operations makes copy of $values array which uses more memory and processing time.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tomtom Toms (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: