Re: UUID question

2015-11-23 Thread Dongfeng Lu
If you can construct unique primary keys from the data you have, I'd suggest you create your own custom primary keys instead of using UUIDs. It will be easier for you to retrieve the records. If you use UUIDs as your primary keys for a table, you need to have some kind of index so that you can

Re: UUID question

2015-11-23 Thread Jack Krupansky
The point is to have a unique, generated ID for each entity, to ensure absolute uniqueness. In the old days each app had its own technique for generating unique IDs. Now we have UUIDs, which are unique, but are generated uniformly across systems and applications. Uniqueness is guaranteed even if an

Re: UUID question

2015-11-23 Thread Prem Yadav
OK. My question is more about what are the use case of any table uuid as partition key. Will appreciate inputs from others. Thanks, Prem On Mon, Nov 23, 2015 at 4:25 PM, Jay Reddy wrote: > Hi Prem, > > We have two tables, one with email id as partition key and other with > userid(uuid). > Pleas

Re: UUID question

2015-11-23 Thread Jay Reddy
Hi Prem, We have two tables, one with email id as partition key and other with userid(uuid). Please refer to www.killrvideo.com website. It is a great place to understand how a web application is built on Cassandra. Thanks, Jay On Mon, Nov 23, 2015 at 11:18 AM, Prem Yadav wrote: > Thanks Jay.

Re: UUID question

2015-11-23 Thread Prem Yadav
Thanks Jay. Now this is great while creating the user. How does the user change the details? let's say email id or password? How do you lookup the user table? On Mon, Nov 23, 2015 at 4:14 PM, Jay Reddy wrote: > Here is one use case .. > > We are designing a web application using Cassandra. > W

Re: UUID question

2015-11-23 Thread Jay Reddy
Here is one use case .. We are designing a web application using Cassandra. When a user signs on we create user info in user table with userid (uuid) is primary and is responded back to UI. UI uses this UUID for any future communications. UI can also get user id when searched for an user detail

UUID question

2015-11-23 Thread Prem Yadav
Hi, I am trying to understand different use cases related to using UUID as the partition key. I am sure I am missing something trivial and will be grateful and you can help me understand this. When do you use the UUID as the primary key? What can be a use case? Since it is unique, how do you quer