ColdFusion cfspreadsheet vs Apache POI: Handling Large Excel Files Without Memory Crashes
cfspreadsheet and Apache POI are not really rivals — ColdFusion's Office/spreadsheet handling is built on Apache POI, so the real question is which POI mode your code ends up using. The classic ColdFusion spreadsheet functions work on a workbook held in the JVM heap, and Apache POI's own documentation says the standard XSSF (.xlsx) API "gives access to all rows in the document" and has a higher memory footprint than the older .xls format. That is why a .xlsx with hundreds of thousands of rows can end in java.lang.OutOfMemoryError: GC overhead limit exceeded. The fix is to switch to a streaming
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in