Hi, On Wed, Nov 12, 2008 at 3:19 PM, 付 尧 <[EMAIL PROTECTED]> wrote: >> ...Not sure which "paginate query support" you mean exactly. > There is method setLimit and setOffset in Jackrabbit's QueryImpl, and there > is method getTotalSize in QueryResultImpl. > > I think use them to do the paginate in sling will be great. :)
Not sure what that would bring over the JCR RangeIterator that we're currently using - and that would create an dependency on Jackrabbit internals, that we don't need. IIUC (maybe someone more familiar with Jackrabbit's internals can confirm this) the performance is the same, the only thing missing currently is including the total size of the result set in the response. -Bertrand
