Change in ovirt-engine[master]: core: use the cached vm-statistics for vm search queries

ahadas at redhat.com ahadas at redhat.com
Thu Sep 1 09:50:15 UTC 2016


Arik Hadas has submitted this change and it was merged.

Change subject: core: use the cached vm-statistics for vm search queries
......................................................................


core: use the cached vm-statistics for vm search queries

VM statistics are cached in VmManager instances so they can be
retrieved from them instead of parsing them from the query from
the database.

This patch doesn't delete VM statistics from 'vms' view since
we need to be sure it is not used by others first.

Change-Id: I24d01411d72fac02b463026a416a98096f89770f
Signed-off-by: Arik Hadas <ahadas at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SearchQuery.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmHandler.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDaoImpl.java
3 files changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Shahar Havivi: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Arik Hadas: Verified



-- 
To view, visit https://gerrit.ovirt.org/62314
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I24d01411d72fac02b463026a416a98096f89770f
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Shahar Havivi <shavivi at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list