I am trying to upload 100k records from xlsx file and using Excel Streaming Reader to iterate excel It was failing in QA server but made changes
StreamingReader.builder()
.sstCacheSize(100)
.open(new FileInputStream(new File(filePath)));
made it work but it is consuming large CPU resources and other users using particular environment complaining of performance hit.
.open(new File(filePath)) is more efficient - with InputStreams, the stream is read into a temporary file and you avoid this with using the File directly.
0
I am trying to upload 100k records from xlsx file and using Excel Streaming Reader to iterate excel It was failing in QA server but made changes
StreamingReader.builder() .sstCacheSize(100) .open(new FileInputStream(new File(filePath))); made it work but it is consuming large CPU resources and other users using particular environment complaining of performance hit.
Any suggestions would appreciate