Re: Auto Increament

2010-03-25 Thread Ryan King
tention. >> This is how you generate a Time-UUID in >> Java: http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java >> >> On Wed, Mar 24, 2010 at 9:57 PM, Jaepil Jeong wrote: >>> >>> Hi there, >>> >>> I just started research a

Re: Auto Increament

2010-03-25 Thread Tatu Saloranta
On Thu, Mar 25, 2010 at 9:20 AM, Benjamin Black wrote: > Cassandra is not being used to generate the Twitter identifiers. > Twitter, like most places using Cassandra, has more than one database > system in production. > > UUIDs are not at risk of conflicts with billions of rows. Exactly: UUIDs we

Re: Auto Increament

2010-03-25 Thread Benjamin Black
here, >>> >>> I just started research about Cassandra to replace MySQL, and I have a >>> question: How can I replace the "auto increament" attribute in MySQL >>> with Cassandra? If I can't, how can I generate an ID which is globally >>&g

Re: Auto Increament

2010-03-25 Thread Jaepil Jeong
> > This is how you generate a Time-UUID in Java: > http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java > > > On Wed, Mar 24, 2010 at 9:57 PM, Jaepil Jeong wrote: > >> Hi there, >> >> I just started research about Cassandra to replace MySQL,

Re: Auto Increament

2010-03-24 Thread Muhammed Nasrullah
is how you generate a Time-UUID in Java: http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java On Wed, Mar 24, 2010 at 9:57 PM, Jaepil Jeong wrote: > Hi there, > > I just started research about Cassandra to replace MySQL, and I have a > question: How can I repla

Re: Auto Increament

2010-03-24 Thread Jesus Ibanez
t; >> >> n: {column1: "value 1", column2: "value 2", ... , columnN: "value >> n"}, >> >> n-1: {column1: "value 1", column2: "value 2", ... , columnN: "value >> n"}, >> >>

Re: Auto Increament

2010-03-24 Thread Peter Chang
ue 2", ... , columnN: "value n"}, > > n-1: {column1: "value 1", column2: "value 2", ... , columnN: "value > n"}, > > ... > > 2: {column1: "value 1", column2: "value 2", ... , columnN: "valu

Re: Auto Increament

2010-03-24 Thread Erik Holstad
gt; n"}, > > ... > > 2: {column1: "value 1", column2: "value 2", ... , columnN: "value n"}, > 1: {column1: "value 1", column2: "value 2", ... , columnN: "value n"}, > }, > > } > > The super co

Re: Auto Increament

2010-03-24 Thread Jesus Ibanez
lue 1", column2: "value 2", ... , columnN: "value n"}, }, } The super columns that represent the autoincrement value are the ones named as: n, n-1, ... , 2, 1. Hope it helps! Jesus. 2010/3/24 Sylvain Lebresne > > How can I replace the "auto increament&qu

Re: Auto Increament

2010-03-24 Thread Sylvain Lebresne
t;> >> I just started research about Cassandra to replace MySQL, and I have a >> question: How can I replace the "auto increament" attribute in MySQL >> with Cassandra? If I can't, how can I generate an ID which is globally >> unique for each of columns? >> >> Thanks, >> >> Sent from my iPhone >> >

Re: Auto Increament

2010-03-24 Thread Sylvain Lebresne
> How can I replace the "auto increament" attribute in MySQL > with Cassandra? You can't. Not easily at least. > If I can't, how can I generate an ID which is globally > unique for each of columns? Check UUIDs: http://en.wikipedia.org/wiki/Universally_Unique_

Re: Auto Increament

2010-03-24 Thread Jeremy Dunck
http://en.wikipedia.org/wiki/Uuid ? On Wed, Mar 24, 2010 at 11:57 AM, Jaepil Jeong wrote: > Hi there, > > I just started research about Cassandra to replace MySQL, and I have a > question: How can I replace the "auto increament" attribute in MySQL > with Cassandra? If I

Auto Increament

2010-03-24 Thread Jaepil Jeong
Hi there, I just started research about Cassandra to replace MySQL, and I have a question: How can I replace the "auto increament" attribute in MySQL with Cassandra? If I can't, how can I generate an ID which is globally unique for each of columns? Thanks, Sent from my iPhone