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: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()
Date Mon, 25 Feb 2008 09:21:32 GMT
I think the idea of adding getChildInfos to NodeInfo was to cut down on
individual calls to the SPI. In a call to getItemInfos an implementation
may choose to return any number of ItemInfos in one single batch. By
making the ChildInfos directly available for those nodes having its
child nodes in the batch, no further calls to the SPI are needed.
Furthermore by doing so an SPI implementation can decide on how much
information it want to read from a back-end store in a single sweep and
delegate caching to the upper jcr2spi layer.

Michael

Julian Reschke wrote:
> Julian Reschke wrote:
>> ...
> 
> Going back to the original discussion:
> 
> what I think we need is a way to return NodeInfos, not ChildInfos.
> 
> Right now, when browsing a collection of 1000 items, getting information 
> about each node (timestamps, dates, ...) requires 1000 individual calls 
> through SPI.
> 
> This is insane, in particular if the implementation is not allowed to 
> cache anything (which I do not agree at all with).
> 
> BR, Julian


Mime
View raw message