I was reading the following blog about using cassandra data modeling:
http://www.ebaytechblog.com/2012/07/16/cassandra-data-modeling-best-practices-part-1/#terms
I was trying to understand how to implement or actually do some of this stuff using CQL commands.
I was interested in the following picture from section Option 3 from the blog/tutorial.
I was interested in implementing the bottom two mostly.
On the bottom left picture, the row key is the item id and the column is the user that likes that item. Some how in the tutorial its shown how one user can be stored in the key, kind of like a tuple of name and userID. How is it possible to do that in CQL? The thing that is confusing me is that, for one user, the table is able to store two column value for it in one row (i.e. its storing the userID as well as the username). I was a little confused how that was actually possible to do for Cassandra. Conceptually it makes sense to me, however, I am not sure if I understand how to actually make cassandra do such a thing.