ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Cache refresh from persistent store question
Date Sun, 29 Nov 2015 22:02:58 GMT
Hi Satya,

The best way to solve this is to use cache API to update the data and never
update DB directly. If you have write-through enabled, updates will be
atomically delegated to the persistence store, so the data in the cache and
in the DB will be always consistent. And you will always have the latest
data in memory which will allow you to execute in-memory queries on this

If this is not possible and you have to update DB directly for some reason,
you will need to update the cache manually. E.g., implement DB trigger that
will properly do this.


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-refresh-from-persistent-store-question-tp2078p2086.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message