You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/05/21 10:01:24 UTC

[jira] [Commented] (JCR-3402) getSize() returning too many often -1

    [ https://issues.apache.org/jira/browse/JCR-3402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13662790#comment-13662790 ] 

Jukka Zitting commented on JCR-3402:
------------------------------------

Merged to the 2.6 branch in revision 1484685.
                
> getSize() returning too many often -1
> -------------------------------------
>
>                 Key: JCR-3402
>                 URL: https://issues.apache.org/jira/browse/JCR-3402
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>            Reporter: Cédric Damioli
>            Assignee: Cédric Damioli
>             Fix For: 2.6.2, 2.7
>
>         Attachments: QueryResultImpl.patch
>
>
> I've came accross the well known behaviour of query results returning -1 when asked for getSize().
> While this is ok for optimization reasons (lazy results fetching), I just discovered that the default "resultFetchSize" value in lucene queries is Integer.MAX_VALUE, so in all queries I've ever executed, all results were actually fetched before asking for getSize, so IMHO nothing prevents getSize() to return the real value instead -1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira