You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.
letcurrent=0letmax=10lettotal=0forawait(constrowofstream){total=row.totalcurrent++if(curent>=max)break// no need to go further}console.log("consumed "+current+" out of "+total+" rows")
Be aware of issues #52, #56, #66 if you choose to do that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am streaming results and I would to cut off the stream after X rows, but I need to know how many rows there are in total.
I have tried to simply count chunks after I stop reading them, but the overhead is too big. It takes +30 seconds to count 30k+ rows.
The text was updated successfully, but these errors were encountered: