Open jexp opened 7 years ago
@jexp Is this still valid?
This is meant for the following use-case.
A query is constructed dynamically or passed in by a part of the app as parameter
As you don't know if that query has already a limit or not and you might want a smaller limit, without having to parse and patch the query, the idea is to stop fetching from the iterator and close the result after the maxRows
Can do this now with subqueries?
or sth like the one below which kinda tracks returned rows with each call (in threadlocal) or as aggregation function in 3.2