According to "CQL for Cassandra 2.x Documentation", the author for storing a playlist, creates table as follows:
CREATE TABLE songs ( id uuid PRIMARY KEY, title text, album text, artist text, data blob )
CREATE TABLE playlists ( id uuid, song_order int, song_id uuid, title text, album text, artist text, PRIMARY KEY (id, song_order ) );
But how does he get song_id? Does the app read the songs table to get the id and use that in this table when doing an insert? (I am trying to learn cassandra and all the examples on the net talks about having different tables to satisfy my query but no where they mention how should I take care of inserting the same data in all tables at a time).
Regards, Seenu.