Eli Mesika has posted comments on this change.

Change subject: (WIP) Adding caching capabilities to database access
......................................................................


Patch Set 2: (2 inline comments)

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VdsDynamic.java
Line 13: import org.ovirt.engine.core.compat.StringHelper;
Line 14: import org.ovirt.engine.core.compat.Version;
Line 15: import org.ovirt.engine.core.compat.cache.TimeToLiveInCache;
Line 16: 
Line 17: @TimeToLiveInCache(30)
Can be configured , we can omit it from being edited by the user by not 
including it in engine-config exposed keys , but still , GSS may use it for 
special handling if we need.

names should be 

TimeToLiveInCacheFor<entity> 

So , when we select from vdc_options , we can get all easily
Line 18: public class VdsDynamic implements BusinessEntity<Guid> {
Line 19:     private static final long serialVersionUID = -6010035855157006935L;
Line 20: 
Line 21:     private Guid id;


....................................................
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/SimpleJdbcCallsHandler.java
Line 99:     private CallCreator createCallForModification(final String 
procedureName) {
Line 100:         return new CallCreator() {
Line 101:             @Override
Line 102:             public SimpleJdbcCall createCall() {
Line 103: //                return new 
SimpleJdbcCall(template).withProcedureName(procedureName);
Why this is commented and not removed ?
Line 104:                 return new 
CacheableJdbcCall(template).withProcedureName(procedureName);
Line 105:             }
Line 106:         };
Line 107:     }


--
To view, visit http://gerrit.ovirt.org/14188
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I04d7edea6a52626c68f88362416abdb025e4b026
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to