I have created a logger tool which monitor changes in the file and get all the data from the changed file. I have followed following steps :
Since you only need 100 records, I suggest only reading enough lines to find the data you need. You shouldn't be afraid of GB of data. You have GBs of memory and disk, and you only need to display as much data as the user can see. I wouldn't assume you have a performance problem until you have measured it. You can realistically manage TBs of data in a reasonable time frames (with the right hardware)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.