I have one csv file that the script is continuously writing. It writes a timestamp and some other data in a row. First I have to read the latest data. I am currently using RandomAccessFile in java to read the file in reverse order. But since it is constantly written, I have to read the new data with priority. I support which timestamp is sent and does the job. This results in unnecessary scan actions.
Is there a better way to handle this scenario?
Thanks in advance,
source
share