Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
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.