You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by bluehu <hu...@gmail.com> on 2016/07/19 02:38:49 UTC
Is there a way to get keyset except SQL query(select _key from
...)?
I want to scan keys from ignite cache(except values) like this to reduce
traffic and improve performance:
/Iterator it = cache.keySetIterator();
while (it.hasNext()) {
......
}/
*but I do not want to use SQL query(select _key from ...) for some reason,
how can I achieve this by minimal modification, do you have some
suggestions?*
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-get-keyset-except-SQL-query-select-key-from-tp6363.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Is there a way to get keyset except SQL query(select _key from
...)?
Posted by vkulichenko <va...@gmail.com>.
Hi,
Right now there is no other way except iterating through entries and getting
keys from them, but in this case you will fetch values as well. Later we
will add an optional transformer to SCAN query [1] which will allow this
functionality.
What is the reason for not using SQL query?
[1] https://issues.apache.org/jira/browse/IGNITE-2546
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-get-keyset-except-SQL-query-select-key-from-tp6363p6364.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.