Change in ovirt-engine[master]: core: Fix performance issues with GetHostsAndVmsForClusters

emesika at redhat.com emesika at redhat.com
Tue Feb 10 08:56:52 UTC 2015


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 at redhat.com <lzelkha at 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 at redhat.com>
Gerrit-Reviewer: Eldad Marciano <emarcian at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list