[ZBX-8428] slow API Items->get() with output extended Created: 2014 Jul 02 Updated: 2017 May 30 Resolved: 2014 Oct 27 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 2.2.4 |
Fix Version/s: | 2.2.6rc1, 2.3.3 |
Type: | Incident report | Priority: | Trivial |
Reporter: | dakol | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, latestdata, performance | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
according to But via API, it is still slow. It seems, the CItem class do not passe the "period", to HistoryManager->getLast()
|
Comments |
Comment by Krists Krigers (Inactive) [ 2014 Jul 15 ] |
Added period and made adjustments where necessary to preserve functionality elsewhere. |
Comment by Oleg Egorov (Inactive) [ 2014 Jul 16 ] |
(1) String changes? kristsk No string changes. RESOLVED. oleg.egorov CLOSED |
Comment by Oleg Egorov (Inactive) [ 2014 Jul 16 ] |
(2) maps.inc.php:475 $lastValue = Manager::History()->getLast(array($item), 1); getLast public function getLast(array $items, $limit = 1, $period = null) { 1 is extra attribute Same issue in CScreenClock.php:44 kristsk RESOLVED in r47398. oleg.egorov CLOSED |
Comment by Oleg Egorov (Inactive) [ 2014 Jul 17 ] |
TESTED |
Comment by richlv [ 2014 Jul 17 ] |
(3) this is a performance improvement - which is nice - thus whatsnew martins-v Listed in https://www.zabbix.com/documentation/2.2/manual/introduction/whatsnew226#api_improvements. RESOLVED. <richlv> hmm, let's try to figure out what frontend functionality was actually improved - for example, value referencing in network maps or something... jelisejev It didn't affect the functionality of the frontend in any way. CLOSED. |
Comment by Krists Krigers (Inactive) [ 2014 Jul 17 ] |
Issue fixed and merged to:
|
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jul 23 ] |
(4) This needs to be documented in the 2.2 API changelog as a breaking change. jelisejev Updated item reference page: kristsk RESOLVED. See https://www.zabbix.com/documentation/2.2/manual/api/changes_2.2. jelisejev CLOSED. |
Comment by richlv [ 2014 Aug 27 ] |
subissues still open : |