You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by tomk <rr...@gmail.com> on 2016/05/11 17:02:14 UTC

Re: What will happend in case of run out of memory ?

Ok, 
so eviction policy allows configure what data should be dropped out from
cache. If it is need to get dropped data, they will be loaded from datastore
(for example postgresql).

1. Eviction policy protect against out of memory (data always may be loaded
to cache). Am I ok ?






--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/What-will-happend-in-case-of-run-out-of-memory-tp4446p4878.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: What will happend in case of run out of memory ?

Posted by vkulichenko <va...@gmail.com>.
You can use loadCache() method for bulk loading. It allows to provide a set
of optional parameters that can be used to specify different conditions,
like time ranges.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/What-will-happend-in-case-of-run-out-of-memory-tp4446p4918.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: What will happend in case of run out of memory ?

Posted by tomk <rr...@gmail.com>.
Yes,
I remember about case of SQL queries. In practice, before executing query
Apache Ignite client should use method .get to loading actual data (queried
by SQL).  

Is it possible to load to cache data that fit to some conditions ? For
example data from last year (table contain column date).



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/What-will-happend-in-case-of-run-out-of-memory-tp4446p4888.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: What will happend in case of run out of memory ?

Posted by Denis Magda <dm...@gridgain.com>.
Correct, evicted data can be loaded from a cache using cache.get/getAll like methods. However note that if you run a SQL query and  there is some evicted data in a persistent storage then it won’t be considered because SQL engine doesn’t trigger the storage for data loading.

—
Denis

> On May 11, 2016, at 8:02 PM, tomk <rr...@gmail.com> wrote:
> 
> Ok, 
> so eviction policy allows configure what data should be dropped out from
> cache. If it is need to get dropped data, they will be loaded from datastore
> (for example postgresql).
> 
> 1. Eviction policy protect against out of memory (data always may be loaded
> to cache). Am I ok ?
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/What-will-happend-in-case-of-run-out-of-memory-tp4446p4878.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.