Q&A
Ask and answer questions to make information more available to wider audiences.
Cohen Cabel @cabelcohen   08, Apr 2023 12:00 AM
data storage
How Cassandra stores data?
answers 1
 
Answer 1
Dillon Caplin @caplindillon   10, Apr 2023 05:45 PM
All data stored as bytes
When you specify validator, Cassandra ensures those bytes are encoded as per requirement
Then a comparator orders the column based on the ordering specific to the encoding
While composite are just byte arrays with a specific encoding, for each component it stores a two byte length followed by the byte encoded component followed by a termination bit.