implement lazy property fetching in NodeManager.updateNode()

to prevent fetching an object property which doesn't need to be updated
This commit is contained in:
hns 2001-05-16 11:20:14 +00:00
parent 80344147dc
commit 11a9c1bd27

View file

@ -408,11 +408,14 @@ public final class NodeManager {
for (Enumeration e=dbm.prop2db.keys(); e.hasMoreElements(); ) {
String propname = (String) e.nextElement ();
Property p = node.getProperty (propname, false);
Relation rel = dbm.propertyToColumnName (propname);
if (rel != null && rel.readonly)
// skip properties that don't need to be updated before fetching them
if (rel != null && (rel.readonly || rel.virtual || rel.direction != Relation.FORWARD))
continue;
Property p = node.getProperty (propname, false);
if (p != null && rel != null) {
if (p.dirty) {