title: Cassandra wide row and simple row behind the scenes
body: <p>Trying to learn how cassandra works here, was very hard to get insights about how data is stored behind the scenes, hence im not sure i got it right and wanted to get corrected if i got it wrong, so far i understand that a typical row that the partition key (leftmost column or compuond column in the primary key) is unique, a row would be written to disk in a chunk that looks like this :</p>
  
  <p><a href="https://i.stack.imgur.com/nc6OO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nc6OO.png" alt="enter image description here"></a></p>
  
  <p>where the columns are sorted by their names.</p>
  
  <p>But, if the partition key is not unique for then it would be considered a "wide row" and a row would look like the following examples :</p>
  
  <p><a href="https://i.stack.imgur.com/ejxR5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ejxR5.png" alt="enter image description here"></a></p>
  
  <p>Please correct me if i got it wrong...</p>