if (name != null || limit > NUM_CHILDREN_CACHE_LIMIT) {
// do not use cache when there is a lower bound name
// or more than 16k child docs are requested
return store.query(Collection.NODES, from, to, limit);
}
StringValue key = new StringValue(path);
// check cache
NodeDocument.Children c = docChildrenCache.getIfPresent(key);
if (c == null) {
c = new NodeDocument.Children();
List<NodeDocument> docs = store.query(Collection.NODES, from, to, limit);