Re: Look table structuring advice

2013-05-04 Thread Dave Brosius
I just used 'synthetic key' as it's a term used with standard rdbms to mean a key that means nothing in the model, and is often a sequence or such. There's nothing particular to cassandra specific to that term. Just thought it would be something familiar to someone who understood rdbms. On 05

Re: Look table structuring advice

2013-05-04 Thread Jabbar Azam
I never thought about using a synthetic key, but in this instance with about a dozen rows it's probably ok. Thanks for your great idea. Where did you read about the synthetic key idea? I've not come across it before. Thanks Jabbar Azam On 4 May 2013 19:30, Dave Brosius wrote: > if you want

Re: Look table structuring advice

2013-05-04 Thread Dave Brosius
if you want to store all the roles in one row, you can do create table roles (synthetic_key int, name text, primary key(synthetic_key, name)) with compact storage when inserting roles, just use the same key insert into roles (synthetic_key, name) values (0, 'Programmer'); insert into roles (s