streamingXlsx does not seem to be streaming #352
Replies: 5 comments
-
I think I figured out that the streaming part only happens when you use addRows() and not if you're looping through addRow(). If there's a way around that, would love to know because I was trying to format the row before it got written away out of the windowSize. |
Beta Was this translation helpful? Give feedback.
-
The trade-off with streaming is that once the rows are flushed to disk they are no longer accessible. That means you can't format or otherwise manipulate added rows once the A workaround is to add the rows in batches, formatting as you go before they get flushed. Here's a basic example:
|
Beta Was this translation helpful? Give feedback.
-
I appreciate the response and the suggestion. That may work. Unfortunately, because we are trying to format a bunch of different tabs with the same formats up at the top with summary data, then have all the real meat of the output starting at row 4 on every tab, I think this means I would need to use a window size of 3 so that I could go through each tab and create those top sections first. I will play around with this idea and see what we can do. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Let me know how your experiments go, but my simple attempt to replicate your use case seems to work using the default 100 row window.
|
Beta Was this translation helpful? Give feedback.
-
thanks for the suggestions. I wound up just using the cf version because it produced what I needed very quickly, and for whatever reason, I couldn't get this one to work at all, it would just time out. I believe there was an error in the background that I wasn't able to see because of our framework, but I do appreciate your help and I will give this another shot when I'm not in such a time crunch. :-) |
Beta Was this translation helpful? Give feedback.
-
Hello folks,
I am trying to use this tool to do a streamingXlsx, but it just keeps eating up the heap and bombing or timing out, and I can't see that setting window size or anything else is having any effect - it just seems the same as trying to write normally. Am I missing some intermediate step to flush these rows out of memory and have them written to disk?
Thanks for any help anyone can provide!
Beta Was this translation helpful? Give feedback.
All reactions