I'm trying to understand Cassandra's storage engine when it comes to composite columns. Unfortunately, the documentation I've read so far contains errors and is leaving me a bit blank.
First, terminology.
Composite columns comprise fully denormalized wide rows by using composite primary keys.
This seems misleading because, AFAIK, composite columns can be used for composite keys, and also simply as composite columns apart from keys.
1: How are composite keys and column names implemented? Every CQL example I can find only shows composite keys as columns, not plain composite columns.
Let's say we have columns 'a', 'b', 'c', 'd' as primary composite key + columns 'e', 'f'. I know 'a' will be the row and partition key.
Let's suppose the following data:
a b c d e f
1a 1b 1c 1d e1 f1
1a 1b 1c 2d e1 f2
1a 1b 1c 2d e2 f3
2a 2b 2c 2d e2 f4
2: How is this stored under the hood? I suppose the real question here is how is 'b', 'c', 'd' mapped out since columns are not hierarchical by definition.
3: The documentation I read says compact storage should no longer be used. But what if non-primary key columns don't need to be added... what's the reason not to use it then?