Change in ovirt-engine[master]: engine: Introducing "cache" for ActionGroupDAO

mkublin at redhat.com mkublin at redhat.com
Wed Jan 30 13:50:34 UTC 2013


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 at 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 at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list