Gilad Chaplik has posted comments on this change.

Change subject: engine: Make VDSUpdateRuntimeInfo load partial VDS object
......................................................................


Patch Set 10:

(1 comment)

http://gerrit.ovirt.org/#/c/21662/10/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/PartialVdsDAODbFacadeImpl.java
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/PartialVdsDAODbFacadeImpl.java:

Line 15:         
vdsPartial.setStaticData(DbFacade.getInstance().getVdsStaticDao().get(vdsId));
Line 16:         
vdsPartial.setDynamicData(DbFacade.getInstance().getVdsDynamicDao().get(vdsId));
Line 17: 
Line 18:         // TODO: A future patch will load this from cache
Line 19:         VDSGroup group = 
DbFacade.getInstance().getVdsGroupDao().get(vdsPartial.getVdsGroupId());
> Na, I want to do it in the code, and later use caching...
so this patch should depend on caching? not sure what is the benefit here... 
you're making 4 db calls instead of one?
Line 20:         
vdsPartial.setVdsGroupCompatibilityVersion(group.getcompatibility_version());
Line 21:         vdsPartial.setVdsGroupCpuName(group.getcpu_name());
Line 22:         vdsPartial.setVdsGroupDescription(group.getdescription());
Line 23:         vdsPartial.setVdsGroupName(group.getName());


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7d72c21f1686c4031607d793bbbefcc3e45e98cb
Gerrit-PatchSet: 10
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to