ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Pagination with TextQuery
Date Thu, 20 Jul 2017 18:47:56 GMT
Query cursor results are paginated automatically while you iterate over the
cursor. I.e. if the page size is 1024 (default), you will never have more
than 1024 entries in local memory. After you finish iteration through the
first page, he second one will be requested, and so on. This allows to avoid
out of memory issues in case of large result sets.

To change the size of the page you can use Query#setPageSize method.


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Pagination-with-TextQuery-tp15176p15199.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message