jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Lazy Loading and RangeIterator Question
Date Thu, 15 Mar 2007 16:19:05 GMT
Hi,

On 3/15/07, adampp <adamp@moesol.com> wrote:
> Does lazy loading of search result mean that when you jump around using the
> RangeIterator's methods skip only the nodes that get touched by the iterator
> actually get loaded?
>
> That is, if I have 1 million nodes returned in a QueryResult and only want
> to get records 50 through 59, then only those ten records actually get
> loaded?

No. The current lazy iterator always starts from the beginning, it's
only the tail of the result set that is not loaded. In your case the
iterator would load something like 60+ records, depending on the
resultFetchSize setting in your SearchIndex configuration.

BR,

Jukka Zitting

Mime
View raw message