ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Ignite.NET ReadThrough?
Date Mon, 13 Mar 2017 15:45:37 GMT
Hi,

First of all, it sounds like you misunderstood the read-though. It is used
ONLY if entry does not exist in cache yet. If you read a value that is
already in cache, cache will never go the database, even if the value was
updated there, because cache simply doesn't know about it.

You should avoid updating database directly, it's much better to do updates
through Ignite API with write-though. This will guarantee consistency and
will fix your problem. In case you update database directly, you will have
to reload corresponding updates manually (you can use
IgniteCache.loadAll(...) method for that).

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-NET-ReadThrough-tp11151p11155.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message