Change in ovirt-engine[ovirt-engine-3.5]: core: Improve performance of getVmDeviceByVmId

tnisan at redhat.com tnisan at redhat.com
Wed Oct 22 19:04:47 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: core: Improve performance of getVmDeviceByVmId
......................................................................


core: Improve performance of getVmDeviceByVmId

getVmDeviceByVmId is calling a query on vm_device_view
using vm_id as a parameter. Since vm_id does not have an
index, this query takes a long time.
This patch added an index, which improved performance in the
perf environemnt from 56ms to 0.2ms.

Change-Id: Icc45e9dd3e4b0cd23d0d28b017b19da13f315d5b
Bug-Url: https://bugzilla.redhat.com/1154421
Signed-off-by: lzelkha at redhat.com <lzelkha at redhat.com>
---
A packaging/dbscripts/upgrade/03_05_1100_create_index_on_vm_device.sql
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Tal Nisan: Looks good to me, approved
  Liran Zelkha: Verified



-- 
To view, visit http://gerrit.ovirt.org/34377
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc45e9dd3e4b0cd23d0d28b017b19da13f315d5b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini 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: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list