Closed chrishic closed 11 years ago
I see. Looks good and makes total sense. Let me test this tomorrow.
Great, thanks for the quick turnaround on reviewing the PR. And a big shout out to you for putting this module together. I've been using it since last September, and its become a key piece of my app. Thank you!
It appears that this commit also fixes a problematic memory leak. :+1:
With the latest trunk, my app (which also pulls down a large amount of data) accumulates non-garbage-collectable resources with every nforce query (even using pipes).
I switched to @chrishic 's fork (and indeed, just this commit) and the memory leak disappeared :)
Thanks for the PR. Landed in Master and will be in the next release.
Aaaaaaand it's in 0.4.4
Thanks again.
Awesome - thanks so much!
These changes were necessary to enable streaming mode to pull back large amounts of data (>90000 contacts) via calls to getNextUrl. query() is now either in streaming mode or non-streaming mode. When in streaming mode, no callback is used and instead stream events are emitted. When in non-streaming mode, callback is used for control flow.