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

oourfali at redhat.com oourfali at redhat.com
Wed Oct 22 11:43:59 UTC 2014


Oved Ourfali 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_06_0450_create_index_on_vm_device.sql
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Allon Mureinik: Looks good to me, approved
  Liran Zelkha: Verified
  Oved Ourfali: Looks good to me, but someone else must approve



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc45e9dd3e4b0cd23d0d28b017b19da13f315d5b
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
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: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list