I have an export function that read the entire database and create a .xls file with all the records. Then the file is sent to the client.
Of course, the time of export t
You do not have to send the whole file once, you can send this file by chunks (line by line for example), just use res.write(chunk) and res.end() at finish to mark it as completed.
res.write(chunk)
res.end()