Michael Kublin has submitted this change and it was merged.
Change subject: engine: Introducing "cache" for ActionGroupDAO
......................................................................
engine: Introducing "cache" for ActionGroupDAO
The following patch is introducing a simle cache for ActionGroupDAO.
The following Dao only perfrom select operation from DB and never update operation.
The following query is running during each engine bll comand, so introducing a cache will
decrease
dramaticly quries to DB.
In general I would prefer to use some third-party cache solution which can be integrated
inside dao,
but because of it can some time, I just wrote something simple that should be good for
now
Change-Id: I292ed3cba6075064e13ba8cee73c47a018fa568a
Signed-off-by: Michael Kublin <mkublin(a)redhat.com>
---
M
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/ActionVersionMap.java
M
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/ActionGroupDAODbFacadeImpl.java
2 files changed, 40 insertions(+), 1 deletion(-)
Approvals:
Michael Kublin: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/11546
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I292ed3cba6075064e13ba8cee73c47a018fa568a
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Kublin <mkublin(a)redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay(a)redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika(a)redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin(a)redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs(a)redhat.com>