ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kcheng.mvp" <kcheng....@gmail.com>
Subject what's the backend table behavior when issue IgniteCache.put(k,v) on an existing key-value pair
Date Sun, 02 Dec 2018 08:35:21 GMT
when persistence enabled, when call  IgniteCache.put(k,v) with a `NEW`
key-value pair, it's obviously that
there is a new `INSERT` sql generated and the values will be inserted into
the backend table.


but for the case when I want to update the properties of the value entity
(eg, the weight property of Dog entity)

if call via IgniteCache.put(k,v), how the backend Sqls issued ?
 1 : use two sqls: first issue a `DELETE` and then issue a `INSERT`?
 2:  use single sql: `UPDATE` including`ALL` properties(columns)
 3:  or ignite is smart enough just to update the `CHANGED`
properties(columns) with a single update?







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message