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: [email protected] <[email protected]> --- 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 <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Eli Mesika <[email protected]> Gerrit-Reviewer: Liran Zelkha <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Tal Nisan <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
