-
Problem report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
Sprint 76 (May 2021)
-
1
History sync is slower due to high CPU usage because of sorting for each element added to array, should add everything and sort once.
In function zbx_extract_functionids() there is function call to zbx_eval_get_functionids() which add functionid to array and sort that array + make unique.
However in case 1000 triggers are processed it will attempt to sort same array 1000 times and make unique 1000 times + 1 in the end.
Expected:
Array is sorted once to reduce CPU usage, also memory should be reserved for array.
- caused by
-
ZBXNEXT-6452 Support new syntax for aggregated checks
- Closed