jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Query performance for large query results
Date Tue, 28 Nov 2006 09:20:20 GMT
Hi,

On 11/28/06, Thomas Mueller <thomas.tom.mueller@gmail.com> wrote:
> Anyway, from an API / user perspective, setLimit and setOffset are
> often used together, for paging. And in many cases the underlying
> engine can be implemented more efficiently when it knows the offset
> and the actual number of elements the client will read - before the
> query is executed.

+1

For example a remote client would immediately benefit from the
setOffset() method since then the server can easily return the entire
result set for Query.execute() instead of waiting for a subsequent
skip() call.

I've proposed these methods also for JSR 283.

BR,

Jukka Zitting

Mime
View raw message