What is the canonical way to model many-to-many relations with CQL3 ? Let\'s say I have to tables
CREATE TABLE actor (
id text PRIMARY KEY,
given text,
The proper way to do this in Cassandra is denormalizing the data into 2 tables. You shouldn't worry about having to write twice, once on each table, as Cassandra is designed to handle writes very fast to support such model.
Take a look at this data modelling tutorials that will help understanding these things:
Data modelling tutorials
Also I see you mentioned sets as well. Just as a side note and although it is not an answer to your questions, you might want to be aware of some new features like: http://www.datastax.com/dev/blog/cql-in-2-1
The way to achieve it is denormalizing data creating an actors_by_fans
and a fans_by_actors
. You can also use sets but this have limitations you already mentioned.
HTH, Carlo