Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2612

Smart getSize() for query results

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-core, query
    • None

    Description

      Instead of so often returning -1, it would be nice if the getSize() method of query result iterators would automatically prefetch something like up to 1k results and only return -1 if there were still more results. That should make the getSize() method more useful for the majority of cases even without extra "order by" clauses.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jukkaz Jukka Zitting
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: