Liran Zelkha has uploaded a new change for review. Change subject: core: Improve performance of updateAllDiskImageDynamicWithDiskIdByVmId ......................................................................
core: Improve performance of updateAllDiskImageDynamicWithDiskIdByVmId updateAllDiskImageDynamicWithDiskIdByVmId is running an update on the disk_image_dynamic table, using a subquery on the images table. Since images table does not have an index on image_group_id, and images can be a rather big table, this patch adds such an index. Change-Id: I1610d633dde009f55485e3081f4094d60cd25e09 Bug-Url: https://bugzilla.redhat.com/1155153 Signed-off-by: lzel...@redhat.com <lzel...@redhat.com> --- A packaging/dbscripts/upgrade/03_05_1090_create_index_on_images.sql 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/34376/1 diff --git a/packaging/dbscripts/upgrade/03_05_1090_create_index_on_images.sql b/packaging/dbscripts/upgrade/03_05_1090_create_index_on_images.sql new file mode 100644 index 0000000..30007af --- /dev/null +++ b/packaging/dbscripts/upgrade/03_05_1090_create_index_on_images.sql @@ -0,0 +1,4 @@ +-- Create index +CREATE INDEX IDX_images_images_group_id on images(image_group_id); + + -- To view, visit http://gerrit.ovirt.org/34376 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1610d633dde009f55485e3081f4094d60cd25e09 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Liran Zelkha <lzel...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches