Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8
-
None
Description
There are performance benefits around NumericRangeQuery. Please notice comment on LuceneQuery implementation.
//TODO: Change this to a NumericRangeQuery when necessary (it's faster) String lower = null; String upper = null; if (getStartKey() != null) { //Do we need to escape the term? lower = getStartKey().toString(); } if (getEndKey() != null) { upper = getEndKey().toString(); } if (upper == null && lower == null) { q = new MatchAllDocsQuery(); } else { q = TermRangeQuery.newStringRange(pk, lower, upper, true, true); }
Attachments
Issue Links
- links to