jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: The infamous getSize() == -1 (Was: [jira] [Created] (OAK-300) Query: QueryResult.getRows().getSize())
Date Thu, 13 Sep 2012 08:27:44 GMT
Hi,

On Thu, Sep 13, 2012 at 10:22 AM, Thomas Mueller <mueller@adobe.com> wrote:
> Yes. Let's discuss the value now! 1000 sounds OK in general, however there
> is a potential performance problem.

How about instead of a size limit we set a time limit on getSize()?
I.e. we limit the method to use no more than the mentioned 0.2 seconds
for prefetching nodes. If the total size is not available by that
time, it'll return -1.

BR,

Jukka Zitting

Mime
View raw message