You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Denis Magda <dm...@gridgain.com> on 2016/02/04 14:47:10 UTC

Re: how can I get data only from local node

Hi,

Please properly subscribe to the user list (this way we will not have to
manually approve your emails). All you need to do is send an email to “
user-subscribe@ignite.apache.org” and follow simple instructions in the
reply.

In general it depends on a type of cache and your particular use case.

If you have a local cache [1] then data is retrieved from local cache only
by notion.

If a cache is replicated [2] then you get data from local node as well
unless it's still being replicated there.

In case of partitioned [3] caches data will be retrieved from a node that
stores a particular value.

If you need more details please elaborate on your use case.

[1] https://apacheignite.readme.io/docs/cache-modes#local-mode
[2] https://apacheignite.readme.io/docs/cache-modes#replicated-mode
[3] https://apacheignite.readme.io/docs/cache-modes#partitioned-mode

Regards,
Denis




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/how-can-I-get-data-only-from-local-node-tp2832p2835.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: how can I get data only from local node

Posted by Dmitriy Setrakyan <ds...@apache.org>.
I think IgniteCache.localPeek(…) method will also look up data only from
the local node, regardless of which cache mode is used.

--
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/how-can-I-get-data-only-from-local-node-tp2832p2835.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>