Executes the cursored statement with the given params
and lazily maps f
over the rows as they are streamed from the database.
Executes the cursored statement with the given params
and lazily maps f
over the rows as they are streamed from the database.
rowsPerFetch
should be carefully picked to balance the minimum number of round
trips to the database, and the maximum amount of memory used by an individual fetch. For
example, consider estimating the whole result size with a select count(...)
first,
and then setting rowsPerFetch
to Math.log(count)
.
A CursoredStatement represents a parameterized sql statement which when applied to parameters yields a lazy stream of rows. Can be used concurrently.