I am working on a server which deals with reading and writing to CSVs relatively large Transit data (50k homogenous maps) supplied by a browser client. I'd like to make it as fast and efficient as possible. At first, I thought that writing each map as a separate token would be best as it would let me deal with the data in a streaming fashion. However looking at the Transit wire representation, key caching only occurs within a single write. This pushes the balance in the favour of writing all of the maps in one transit write. However, this means that at read time, all of the maps will need to be read into memory at once.
In the grand scheme of things it is probably not a big deal either way, but I was interested in what the recommendations were for this kind of workload?