ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Fetching large number of records
Date Fri, 02 Dec 2016 17:47:56 GMT

The JdbcQueryTask is executed each time the next page is needed. And the
number of rows returned by the task is limited by fetchSize:

    if (rows.size() == fetchSize) // If fetchSize is 0 then unlimited

The cursor is cached and reused there, so is this task is executed twice for
the same result set, it will not execute the query from scratch, but will
get the existing cursor and start iteration from where it finished on the
first invocation.

I'm not completely sure that I correctly understand what you mean by
streaming here, but paging is definitely in place and that's how it works


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Fetching-large-number-of-records-tp9267p9373.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message