[ZBX-7445] Frontend tries to take latest values while deleting host Created: 2013 Nov 27 Updated: 2017 May 30 Resolved: 2013 Dec 04 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 2.2.1rc1 |
Fix Version/s: | 2.2.2rc1, 2.3.0 |
Type: | Incident report | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | optimization | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Steps to reproduce: SQL (0.000574): (SELECT * FROM history_uint h WHERE h.itemid='23271' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23287' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23289' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23290' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23291' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23292' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23313' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23315' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) UNION ALL (SELECT * FROM history_uint h WHERE h.itemid='23316' ORDER BY h.clock DESC LIMIT 2 OFFSET 0) |
Comments |
Comment by Eduards Samersovs (Inactive) [ 2013 Nov 27 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7445 |
Comment by Alexander Vladishev [ 2013 Nov 27 ] |
Successfully tested! Please review my changes in r40554. Eduards CLOSED |
Comment by Eduards Samersovs (Inactive) [ 2013 Nov 28 ] |
Fixed in versions 2.3.0 (trunk) r.40562, 2.2.1rc1 r.40561 |
Comment by Pavels Jelisejevs (Inactive) [ 2013 Nov 28 ] |
(1) There are some other places where we unnecessarily retrieve item history data, a couple of them:
Please check all of the item.get calls and selectItems usages and make sure we don't use API_OUTPUT_EXTEND and API_OUTPUT_REFER anywhere. You can check out the changes in svn://svn.zabbix.com/branches/dev/ZBXNEXT-2017. I've removed most of the API_OUTPUT_REFER usages there, may be it will help you find the places that need to be fixed. Eduards Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7445 r.40615 sasha REOPENED
Eduards RESOLVED r.40736 sasha CLOSED Please review my changes in r.40741 before a merge. Eduards OK, CLOSED |
Comment by Eduards Samersovs (Inactive) [ 2013 Dec 09 ] |
Fixed in versions 2.3.0 (trunk) r.40849, 2.2.2rc1 r.40848 |