Re: CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-28 Thread Pierre-Yves Ritschard
OK, so great news, it is now possible to do in CQL with the following syntax, as per CASSANDRA-4179 CREATE TABLE foo ( host text, service text, metric int, PRIMARY KEY ((host,service))); (note the double parentheses). This will effectively create a CF whose row key is a composite type.

Re: CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-23 Thread aaron morton
Subject: CQL3 Compound Primary Keys - Do I have the right idea? From: Adam Venturella aventure...@gmail.com To: user@cassandra.apache.org CC: Trying to better grasp compound primary keys and what they are conceptually doing under the hood. When you create a table

Re: CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-23 Thread Pierre-Yves Ritschard
to look at the data through Cassandra -cli which shows you how data is stored. Thanks. -Wei Sent from my Samsung smartphone on ATT Original message Subject: CQL3 Compound Primary Keys - Do I have the right idea? From: Adam Venturella aventure...@gmail.com To: user

Re: CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-22 Thread Pierre-Yves Ritschard
it is much clearer to look at the data through Cassandra -cli which shows you how data is stored. Thanks. -Wei Sent from my Samsung smartphone on ATT Original message Subject: CQL3 Compound Primary Keys - Do I have the right idea? From: Adam Venturella aventure

CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-21 Thread Adam Venturella
Trying to better grasp compound primary keys and what they are conceptually doing under the hood. When you create a table with a compound primary key in cql3 (http://www.datastax.com/dev/blog/schema-in-cassandra-1-1) the first part of the key is the partition key. I get that and the subsequent