如何解决大数据量的Excel上传下载问题?

下载近半年的订单,60w左右,年中总结,多个运营同时下载,OOM系统崩溃。
尝试了easyExcel,还是有OOM现象发生。
问题1:速度慢
问题2:内存溢出

c# .net可以参考openxml.


java的话,你可能需要分批次进行处理。
这是大规模读写excel的方法。
c# - reading a large open xml spreadsheet - Stack Overflow i need to read (and parse) large spreadsheet files (20-50MB) using the openxml libraries and there doesn't seem to be a way to stream the rows one at a time for parsing. i'm consistently getting ... https://stackoverflow.com/questions/2061838/reading-a-large-open-xml-spreadsheet


10万行数据秒级写

慢正常,OOM就不行了,尝试使用R2DBC一边读库一边写?

为什么要实时下载,丢到队列里,操作完存储起来,让运营直接去下载文件不行吗,而且下的都是同一个文件