I am maintaining a log of processed serial numbers
in a file on disk. Now if I run the flow again I needed to match the serial number
attribute on each NiFi flowfile with the list of serial numbers stored in a file on disk.
Case:
1)I am fetching the file containing a list of serial numbers on disk using FetchFile
processor.
2)Using routeonContent
processor to route any serial number not present in the file further by searching for the serial number attribute in the file.
3) I auto terminate the matched ones since its already processed.
This Procedure needs me to read the file containing the list of serial numbers for every flowflie which in turn causes the memory to bloat. Is there a way to read the disk file only once and match all flow file attributes to the same "static" instance of the disk file?