The use case is the following:
- Read data from external database and load it into pandas dataframe
- Transform that dataframe into parquet format buffer
- Upload that buffer to s3
I've been trying to do step two in-memory (without having to store the file to disk in order to get the parquet format), but all the libraries I've seen so far, they always write to disk.
So I have the following questions:
- Wouldn't it be more performant if the conversion was done in-memory since you don't have to deal with I/O disk overhead?
- As you increase the concurrent processes converting files and storing them into disk, couldn't we have issues regarding disk such as running out of space at some points or reaching throughput limit of the disk ?