jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: [jira] Commented: (JCR-1405) SPI: Introduce NodeInfo.getChildInfos()
Date Mon, 25 Feb 2008 15:50:51 GMT
Michael Dürig wrote:
>>> RepositoryService.getNodeInfos(SessionInfo sessionInfo, NodeId[] nodeId)
>>>
>>> returning an Iterator of NodeInfo. Or am I missing something here?
>>
>> +1 for getting many NodeInfos in one call.
>>
>> However -- is your proposal for the calls passed in as parameter, or 
>> for their child nodes?
> 
> I missed something... the nodeId's are not available to jcr2spi (that is 
> what getChildInfos was/is for). So +1 for Marcel's original suggestion 
> for adding RepositoryService.getChildInfos().

...the one for which Marcel already agreed it doesn't help for the 
problem we are trying to solve :-)?

As far as I can tell, we have a problem of having too many indirections. 
In this case, it causes an extreme overhead in additional roundtrips. 
This is what we need to solve.

IMHO the obvious way to do that would be to allow returning NodeInfos 
instead of ChildInfos. I don't case particulary how -- allowing the 
iterator to contain both, or let NodeInfo extend ChildInfo.

BR, Julian

Mime
View raw message