cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: last record rowId
Date Wed, 15 Jun 2011 17:05:43 GMT
You're better served using UUIDs than numeric row IDs for surrogate
keys.  (Of course natural keys work fine too.)

On Wed, Jun 15, 2011 at 9:16 AM, Utku Can Top├žu <utku@topcu.gen.tr> wrote:
> As far as I can tell, this functionality doesn't exist.
>
> However you can use such a method to insert the rowId into another column
> within a seperate row, and request the latest column.
> I think this would work for you. However every insert would need a get
> request, which I think would be performance issue somehow.
>
> Regards,
> Utku
>
> On Wed, Jun 15, 2011 at 11:14 AM, karim abbouh <karim_rbt@yahoo.fr> wrote:
>>
>> in my java application,when we try to insert we should all the time know
>> the last rowId
>> in order the insert the new record in rowId+1,so for that we should save
>> this rowId in a file
>> is there other way to know the last record rowId?
>> thanks
>> B.R
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message