Data Memory Release to be Displayed on Live Graph (Moving Graph)

Hi, currently I’m developing a simulation of live graph dashboard, imagine a graph with timeseries and always update every 5 seconds. For simulation I’m using csv file which can read 200 rows only but there are 10k rows in total, the question is, how to read all rows with memory release method? or Any other methods I can display all rows?