Slava,

I'd like to avoid scanning potentially millions of cache items just to retrieve 
a hundred. More importantly, I already have the cache keys that I want. Why 
would I scan the entire cache? All I need is to filter keys.

Any other suggestions?

Thanks
Andrey

_____________________________
From: slava.koptilin <[email protected]<mailto:[email protected]>>
Sent: Thursday, August 24, 2017 2:34 AM
Subject: Re: Retrieving multiple keys with filtering
To: <[email protected]<mailto:[email protected]>>


Hi Andrey,

It seems IgniteCache#query(ScanQuery) method is that you are looking for.
https://ignite.apache.org/releases/2.1.0/javadoc/org/apache/ignite/IgniteCache.html

You can find an example here:
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/Retrieving-multiple-keys-with-filtering-tp16391p16392.html
Sent from the Apache Ignite Users mailing list archive at 
Nabble.com<http://Nabble.com>.


Reply via email to