Eli Mesika has submitted this change and it was merged.
Change subject: core: Fix performance issues with GetHostsAndVmsForClusters
......................................................................
core: Fix performance issues with GetHostsAndVmsForClusters
GetHostsAndVmsForClusters takes >30s in performance environment.
This is caused by an uneeded join between vm_static and vds_static.
This patch uses 2 sub-selects to eliminate the join and improve the performance.
This decreased execution time in the performance environment from 30s to <1s
Change-Id: I185e157bb00596c10449b637bf0c9a2c3b9d21e5
Bug-Url:
https://bugzilla.redhat.com/1186737
Signed-off-by: lzelkha(a)redhat.com <lzelkha(a)redhat.com>
---
M packaging/dbscripts/vds_groups_sp.sql
1 file changed, 1 insertion(+), 3 deletions(-)
Approvals:
Eli Mesika: Looks good to me, approved
Liran Zelkha: Verified
--
To view, visit
http://gerrit.ovirt.org/37526
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I185e157bb00596c10449b637bf0c9a2c3b9d21e5
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <lzelkha(a)redhat.com>
Gerrit-Reviewer: Eldad Marciano <emarcian(a)redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika(a)redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server