You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by srinivas rao <pi...@gmail.com> on 2013/12/02 09:40:09 UTC

Updates is not happening when using the same time stamp.

Hi Team,

i am facing an issue, with updating the data with same time stamp.

The column values with string type which multiple fields are delimited with
"|", example (1|2|3|4|5|6|).
if i chage one of the field, some times its updating properly with same
time stamp (column internal clock). however some times its not updating
with same time stamp.
The updates are not happening continuously,
please help me to solve the issue.

please help me to understand the logic also.



Thanks
Srini

Re: Updates is not happening when using the same time stamp.

Posted by Julien Campan <ju...@gmail.com>.
Hi,

The internal timestamp is used when you try to read a row. Cassandra checks
 all the versions  of the same row and returns the one with the most recent
timestamp.  If you make many writes (updates) of the same row with the same
timestamp and then read it, Cassandra is not going to be able to choose
between them.

In the code, for this case, they add something that returns the first
result from the lexical-order.

I think that doing many updates with same timestamp is not a good pattern
with Cassandra and you should try to find another way to perform yours
operations.


Julien CAMPAN






2013/12/2 srinivas rao <pi...@gmail.com>

>  Hi Team,
>>
>> i am facing an issue, with updating the data with same time stamp.
>>
>> The column values with string type which multiple fields are delimited
>> with "|", example (1|2|3|4|5|6|).
>> if i chage one of the field, some times its updating properly with same
>> time stamp (column internal clock). however some times its not updating
>> with same time stamp.
>> The updates are not happening continuously,
>> please help me to solve the issue.
>>
>> please help me to understand the logic also.
>>
>>
>>
>> Thanks
>> Srini
>>
>
>

Re: Updates is not happening when using the same time stamp.

Posted by srinivas rao <pi...@gmail.com>.
>
> Hi Team,
>
> i am facing an issue, with updating the data with same time stamp.
>
> The column values with string type which multiple fields are delimited
> with "|", example (1|2|3|4|5|6|).
> if i chage one of the field, some times its updating properly with same
> time stamp (column internal clock). however some times its not updating
> with same time stamp.
> The updates are not happening continuously,
> please help me to solve the issue.
>
> please help me to understand the logic also.
>
>
>
> Thanks
> Srini
>