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 performance.
[1] https://apacheignite.readme.io/v1.1/docs/cache-queries#scan-queries [2] https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java Thanks! -- 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.
