Hi, On Wed, Nov 12, 2008 at 2:45 PM, 付 尧 <[EMAIL PROTECTED]> wrote: > ...I see the code of the JsonQuerySevlet, but in my opinion the way it > supported paginate doesn't seems right. > > It fetch all the result and skip the result before the offset....
No - AFAIK the JCR's RangeIterator.skip method does not fetch more than needed. > ...I also need the total result count to calculate the total page number > too.... Right, that's something that we might want to include in the JsonQueryServlet output. I don't think there's a workaround currently to get that value without modifying the JsonQueryServlet code. >... Why sling didn't use Jackrabbit's paginate query support?... Not sure which "paginate query support" you mean exactly. -Bertrand
