[ZBXNEXT-2285] API create and update optimization Created: 2014 Apr 29  Updated: 2022 Sep 09  Resolved: 2022 Sep 06

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A)
Affects Version/s: 2.3.0
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Ivo Kurzemnieks Assignee: Unassigned
Resolution: Unsupported version Votes: 0
Labels: api, improvements, optimization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

API create and update methods check existing names in each foreach iteration. This means a separate SQL query is executed for each name. We can optimize this to query existing names all at once. Partially this has been done in ZBX-7981, but could also be done in other API places mentioned there: Template, Graph and Graph prototype, UserGroup and XML v1.8 import in various places.



 Comments   
Comment by Ivo Kurzemnieks [ 2022 Sep 06 ]

In newer versions the mentioned APIs have already improved validation for create and update methods. There are no loops when finding duplicate names.
Nothing more to do here.
Closing the issue.

Generated at Fri Apr 26 05:56:09 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.