D
D
drowzeenico2020-01-23 19:14:38
excel
drowzeenico, 2020-01-23 19:14:38

How to write huge amount of data to xls file?

Good day. There is a huge array of data - 1 million objects, which are obtained by sampling from the database. Now all this needs to be written into an excel file.
First I took the excel4node npm package. For small datasets, it is great (like many others, by the way). Support for styles, formatting, cell reversal, etc. But as soon as I tried to write these same 1 million lines, the node crashed with:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
.
If it was a regular file, I would use streams for asynchronous recording, but what about the xls file exactly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-01-23
@hzzzzl

Well, according to the word node stream to xls, packages like this are
googled
.
Excel by itself will be able to open a million lines?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question