You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by iceguo <gu...@ffcs.cn> on 2015/11/02 04:00:56 UTC

Re: The result of cross-cache SQL joins is incomplete.

Thank you for your reply, I think it is reasonable.

There is another question, when I put table data into REPLICATED cache, This
operation is synchronous or asynchronous?

If it is asynchronous, how can I know when this operation has finished?

Or can I change the operation from asynchronous to synchronous ?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-result-of-cross-cache-SQL-joins-is-incomplete-tp1723p1802.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The result of cross-cache SQL joins is incomplete.

Posted by iceguo <gu...@ffcs.cn>.
Thank you for your reply.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-result-of-cross-cache-SQL-joins-is-incomplete-tp1723p1818.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The result of cross-cache SQL joins is incomplete.

Posted by Denis Magda <dm...@gridgain.com>.
Alex, thanks for providing the correct example! Shame on me, didn't pay much
attention while was providing my version ;)



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-result-of-cross-cache-SQL-joins-is-incomplete-tp1723p1811.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The result of cross-cache SQL joins is incomplete.

Posted by Alexey Kuznetsov <ak...@gridgain.com>.
iceguo and Deniss

I think Denis provided slightly incorrect code snippet to work with async.

One should use varable to work with async like this:
IgniteCache asyncCache = cache.withAsync();
asyncCache.put(...);
....
asyncCache.future().get();

Denis, take a look.


On Mon, Nov 2, 2015 at 4:40 PM, Denis Magda <dm...@gridgain.com> wrote:

> > There is another question, when I put table data into REPLICATED cache,
> This operation is synchronous or asynchronous?
>
> cache.put is synchronous. However, you can make behave him asynchronously
> this way: cache.withAsync().put(...)
>
> > If it is asynchronous, how can I know when this operation has finished?
>
> cache.withAsync().put(...);
>
> // blocks until the put above is finished
> cache.future().get();
>
>
> In addition I would like to let you know that you always can change the way
> data is synchronized during put or other modification operations using
> CacheWriteSynchronizationMode that can be changed for a CacheConfiguration.
>
> Regards,
> Denis
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/The-result-of-cross-cache-SQL-joins-is-incomplete-tp1723p1808.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Re: The result of cross-cache SQL joins is incomplete.

Posted by Denis Magda <dm...@gridgain.com>.
> There is another question, when I put table data into REPLICATED cache,
This operation is synchronous or asynchronous? 

cache.put is synchronous. However, you can make behave him asynchronously
this way: cache.withAsync().put(...)

> If it is asynchronous, how can I know when this operation has finished? 

cache.withAsync().put(...);

// blocks until the put above is finished
cache.future().get();


In addition I would like to let you know that you always can change the way
data is synchronized during put or other modification operations using
CacheWriteSynchronizationMode that can be changed for a CacheConfiguration.

Regards,
Denis



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-result-of-cross-cache-SQL-joins-is-incomplete-tp1723p1808.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.