node-csv-stream icon indicating copy to clipboard operation
node-csv-stream copied to clipboard

how to get top 10 rows from million records

Open sridhargoshika opened this issue 5 years ago • 1 comments

Can we get top 10 rows only?

sridhargoshika avatar Oct 18 '19 12:10 sridhargoshika

You can simply add a counter, on every row data get, increase your counter by 1. when its reached to 10, return;

nabeelasjid1 avatar Dec 22 '22 10:12 nabeelasjid1