What is the fastest way to Temporary store huge amount of data?
I'm writing a program that would be reading data from the database in chunks and I need to store it temporarily in some file. After that, I would be passing it with REST API.
Right now I'm considering StringIO
vs TemporaryFile
. Looks like first saves data in memory and the second one on disk - but the question is which one is fastest for the big volumes of data?