ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Re: update the sql database after a particular limit?
Date Tue, 01 Mar 2016 07:26:21 GMT

There is no built-in mechanism to automatically retrieve updates from
database. I would suggest you to do the following:
1) Configure a cache store (e.g. see CacheJdbcPojoStore).
2) Set flags CacheConfiguration.setReadThrough() and
CacheConfigutration.setWriteThrough() to true.
3) Whenever you want to change database data, update the cache, not the
database. Ignite will transfer this change to the database.


On Tue, Mar 1, 2016 at 8:32 AM, Ravi Puri <ravikumarpuri04@gmail.com> wrote:

> Suppose i have a employee data and its login time . I want to fetch the
> data
> from database and store it in cache and everytime i login if its changes in
> database then i want to reflect back in cache too. As i want my code to
> work
> consistently with cache data rather than database
> ??
> please suggest me ways how to configure and and some code changes in get
> and
> put operation
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/update-the-sql-database-after-a-particular-limit-tp3250p3279.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message