Hello!

You can do cache.invoke() with a callback that will update a single field
in an object. It will be sent to a specific node in cluster and object in
question will not be transferred via network, but processed locally.

Note that UPDATE will probably only send request to node containing
relevant key if that is specified, and not broadcast it.

Regards,
-- 
Ilya Kasnacheev


пт, 8 мар. 2019 г. в 11:28, BinaryTree <[email protected]>:

> Hi Igniters -
>
> As far as I am known, igniteCache.put(K, V) will replace the value of K
> with V, but sometimes I just would like to update a specific field of V
> instead of the whole object.
> I know that I can update the specific field via
> igniteCache.query(SqlFieldsQuery),  but how-ignite-sql-works
> <https://apacheignite-sql.readme.io/docs/how-ignite-sql-works> writes
> that ignite will generate SELECT queries internally before UPDATE or DELETE
> a set of records, so it may not be as good as igniteCache.put(K, V), so is
> there a way can update a specific field without QUERY?
>
>

Reply via email to