I am using cassandra
in an experimental project. My model is simple I have the table below:
create table message(
id varchar,
msgId varchar,
tId varchar,
gtName varchar,
status varchar,
text text,
PRIMARY KEY (id, tId)
);
At the time of first insert I would only have id and tId to insert. There will be an immediate update where I can get msgId to persist from the return type of the called method. There will be another call to my app containing the status
which would only know the msgId. In that case I will need a lookup in order to update the message table using a where clause on msgId
.
How can I possibly get that working fine with cassandra 2.1.0
I am also using spring-data-cassandra:1.1.0.RELEASE
Thanks for your suggestion