jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OAK-1930) New method RangeIterator.getSize(int max)
Date Tue, 01 Jul 2014 07:40:25 GMT

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

angela edited comment on OAK-1930 at 7/1/14 7:39 AM:
-----------------------------------------------------

i would add this extension to the Jackrabbit API such that JCR/Jackrabbit API consumers can
make use of it; thus moving this issue to jcr-commons


was (Author: anchela):
i would add this extension to the Jackrabbit API such that JCR/Jackrabbit API consumers can
make use of it.

> New method RangeIterator.getSize(int max)
> -----------------------------------------
>
>                 Key: OAK-1930
>                 URL: https://issues.apache.org/jira/browse/OAK-1930
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: core, jcr, query
>    Affects Versions: 1.0
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 1.1
>
>
> The method RangeIterator.getSize() is part of the JCR API, and returns the number of
items, but can also return -1 if not known.
> Currently, Oak doesn't return -1, but counts the items. This is slow (potentially very
slow) if there are many items, for example, in a query result.
> I propose to add a new method RangeIterator.getSize(long max) that limits counting the
entries. That way, an application can use a reasonable limit, and Oak doesn't need to count.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message