jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <michael.due...@day.com>
Subject Re: JCR to SPI performance improvment
Date Thu, 06 Aug 2009 09:04:27 GMT
> An instanceof test on the childInfo object to see if it's already a 
> nodeInfo could
> avoid the call to getNodeInfo (and all name resolver operations, path 
> parsing and so on).


While this approach might work, the preferred way to achieve this kind 
of batch reading is to implement RepositoryService.getItemInfos(). Here 
you can return arbitrary ItemInfos in a single batch. The jcr2spi module 
will then put these into the hirarchy without additional calls to the 
spi layer. See also https://issues.apache.org/jira/browse/JCR-1797


View raw message