title: Get the last inserted data from Cassandra
body: <p>We have a primary key in our table as <code>UUID</code>. To get the last record we do order by <code>desc uuid</code> field. However, because this field is not integer we do not get the last record always. Is there a way to get the last record? Please note that we do not want to make cluster columns. </p>
  
  <p>Here is my table</p>
  
  <pre><code>ArtistId (partition key)  | SongId (primary key, uuid) |  Song
  --------------------------------------------
  1                         | 9a9fa429-c349-4137         |  abc
  1                         | 9a9fa429-b349-6137         |  cde
  1                         | 9a9ga429-a349-6132         |  fgh
  2                         | 249ga429-a909-6542         |  ijk
  2                         | 249kg429-a239-3652         |  lmn
  1                         | i55oa429-a909-3462         |  opq
  1                         | e4235k59-4ik9-6542         |  rst
  </code></pre>