lbdremy / node-csv-stream

Simple CSV stream for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get top 10 rows from million records

sridhargoshika opened this issue · comments

Can we get top 10 rows only?

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