You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by pgarg <pg...@gridgain.com> on 2015/05/09 19:21:13 UTC

How to run async query?

/asked by john smith/

Using 1.0.2 community. How would you run an async query?

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-run-async-query-tp183.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: How to run async query?

Posted by pgarg <pg...@gridgain.com>.
/commented by dmitriy setrakyan/

John, you can treat /QueryCursor/ as a /Future/ and /QueryCursor.getAll()/
as /Future.get()/.

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-run-async-query-tp183p187.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: How to run async query?

Posted by pgarg <pg...@gridgain.com>.
/commented by john smith/

But I would rather run async with vertx.io rather then getAll()

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-run-async-query-tp183p186.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: How to run async query?

Posted by pgarg <pg...@gridgain.com>.
/commented by john smith/

I didn't know... I was expecting a future to be returned. Was just wondering
how to integrate async query with async framework like vertex.io. Doing a
getAll() so I assume that is blocking...
----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-run-async-query-tp183p185.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: How to run async query?

Posted by pgarg <pg...@gridgain.com>.
/commented by dmitriy setrakyan/

John, the query is asynchronous by default as it returns the cursor to the
user before the 1st result comes in (as far as I know). Is it not what you
are observing?

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-run-async-query-tp183p184.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.