Architecture question: Say you've got a process that's currently written as a batch process:
1. load data from disk
2. process all data to generate stats
3. write small output
but the problem is that "load datafiles" is taking too long (it's 13gb!) as you iterate on step 2.
So the obvious solution is to keep the data in RAM, ie, a server. You're always going to be reading every single row, so indexes/complex SQL queries are not useful.
How would you implement this? ie, what tech stack?
like, one obvious option is just to turn it into an SQL database and turn the data into a table and just do a select * from table.
but database are optimized to do a lot of indexing and querying, and that's not going to gain you anything here. You really just need something that keeps this all in RAM. Maybe something simpler, like redis?