ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkarachentsev <dkarachent...@gridgain.com>
Subject Re: getAsMap ??
Date Thu, 17 Aug 2017 15:55:45 GMT
Hi Chris,

Collecting all data from cache to map is a bad idea, because it could be
quite large and you may get OutOfMemoryError. Exactly for that purpose
ScanQuery was designed [1]. You may set filter and using cursor get data:
iterating over it (this will load entries from grid with batches), or call
getAll() [2]. Filtering will be processed on data node locally with maximal

[1] https://apacheignite.readme.io/v1.1/docs/cache-queries#scan-queries


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

View raw message