-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I change sheet to stream and save it into workbook #46
Comments
I would also appreciate a tip how to handle big data. |
Thanks for the feedback. It sounds like an interesting use cases. The current stream story of Docjure is just to perform stream IO: the document is still built up in-memory. I have not run into the memory-problem myself so I can offer no better advice than throwing more memory at it, or rolling up the sleeves and adding streaming to Docjure. The underlying Apache POI library supports a limited streaming model for big datasets so please have a look at that and see if you can find a way to let Docjure leverage it. You will find the documentation here: POI documentation - in particular the streaming API, SXSSF |
I have a big data from database. I use the SQL limit offset and I am trying to rewrite my code to find out the way to solve my problem. At the very beginning, I guess the create sheet will use lots of memory, so I want it can run like stream. Finally, I figure out that it is due to my code . |
I have a big data to save.
So I have to loop to call
add-rows!
tosheet
and then save thesheet
toworkbook
I guess the data is too big and the clojure throw
OutOfMemoryError GC overhead limit exceeded
Exception.So I have to change the sheet into stream and save the workbook with outputstream .
What should I do?
Thanks.
The text was updated successfully, but these errors were encountered: