ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: meaning of backup options.
Date Thu, 26 May 2016 10:02:55 GMT
'readFromBackup' defines if it's allowed to read the local value from the
backup. I.e. if you're executing get(K) on the server node, this node is
backup for the K and readFromBackup is false, Ignite will send the request
to primary node and get the value from there. By default the value is true,
so is the entry is available locally, no network trips are required.

'copyOnRead' defines whether the copy of the value is created before it's
returned from the cache. Of course, this makes sense only if the value is
read locally (e.g., if in case of get() on primary or backup node, in case
of invoke(), etc.). Setting this to false can improve performance, because
you avoid additional deserialization step, but it's not safe to mutate the
value that you read in this case, so usually it's used only for immutable


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/meaning-of-backup-options-tp5134p5227.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message