Fixes the issue where large data sets cause a heap error. Uses the first stream of data to set the headers and then just writes each unparsed batch after that. ** If there are less than 1000 items returned then we can be sure that the headers are all set properly. However, if the table has more than 1000 items we are assuming that they are all accounted for in the first 1000 returned. **
Fixes the issue where large data sets cause a heap error.
Uses the first stream of data to set the headers and then just writes each unparsed batch after that.
** If there are less than 1000 items returned then we can be sure that the headers are all set properly. However, if the table has more than 1000 items we are assuming that they are all accounted for in the first 1000 returned. **

edasque/DynamoDBtoCSV