ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akritibahal91 <akritiba...@outlook.com>
Subject Re: UPDATE sql query in ignite
Date Fri, 15 Apr 2016 18:13:33 GMT
I think you did not understand my question. How do I add a new value in my
cache (i.e., a new row) which is not already present in the database?

Example:

Person Cache right now, has:

[key=PersonKey [id=2], val=Person [id=2, firstName=Marc, lastName=Robinson,
orgid=300, salary=12000]]
 Entry [key=PersonKey [id=1], val=Person [id=1, firstName=Roy,
lastName=Daniel, orgid=200, salary=1000]]
Entry [key=PersonKey [id=3], val=Person [id=3, firstName=Jacob,
lastName=Kimpson, orgid=300, salary=2000]]
 Entry [key=PersonKey [id=4], val=Person [id=4, firstName=Caleb,
lastName=Hass, orgid=100, salary=4000]]

I want to add a new entry to the cache, something like:
 Entry [key=PersonKey [id=5], val=Person [id=5, firstName=Chritian,
lastName=Chon, orgid=400, salary=2000]]

How do I do that? 

I know that any updates made to the cache with be written to the database,
so that wasn't my question.





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

Mime
View raw message