Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1983

JcrSession.cachedNode should not use node.getChildReferences(cache).getChild(segment) for ChildReferences with UNKNOWN_SIZE

XMLWordPrintable

      When looking up nodes using segments, JcrSession.cachedNode should test whether the parent node's ChildReferences size is UNKNOWN_SIZE. Looking up a child node of a parent with thousands of children could take a lot of time as the approach is to iterate over the children.

      Recommendation for ChildReferences with UNKNOWN_SIZE is to locate nodes via WorkspaceCache.getChildReference(parenKey, nodeKey) instead.

              rhauch Randall Hauch (Inactive)
              weljo_web Joel Pascua (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: