Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Currently, we use several threads to search Lucene and read the records from the repo. We need to modify this so that in the QueryResult, we have an "AtomicBoolean limitReached".
We should set this to true whenever we merge the results and determine that there are at least 'limit' records read. Before reading each record, we should check this flag. If set to true, should stop reading. However, at this point we still need to ensure that we hit Lucene to determine the number of hits.
Attachments
Issue Links
- is duplicated by
-
NIFI-523 Persistent Provenance Repository reads all documents that it finds from Lucene when performing query
- Resolved