title: What is the byte size of common Cassandra data types - To be used when calculating partition disk usage?
body: <p>I am trying to calculate the the partition size for each row in a table with arbitrary amount of columns and types using a formula from the Datastax Academy Data Modeling Course.</p>
  
  <p>In order to do that I need to know the "size in bytes" for some common Cassandra data types. I tried to google this but I get a lot of suggestions so I am puzzled.</p>
  
  <p>The data types I would like to know the byte size of are:</p>
  
  <ul>
  <li>A single Cassandra TEXT character (I googled answers from 2 - 4 bytes)</li>
  <li>A Cassandra DECIMAL</li>
  <li>A Cassandra INT (I suppose it is 4 bytes)</li>
  <li>A Cassandra BIGINT (I suppose it is 8 bytes)</li>
  <li>A Cassandra BOOELAN (I suppose it is 1 byte, .. or is it a single bit)</li>
  </ul>
  
  <p>Any other considerations would of course also be appreciated regarding data types sizes in Cassandra.</p>
  
  <p>Adding more info since it seems confusing to understand that I am only trying to estimate the "worst scenario disk usage" the data would occupy with out any compressions and other optimizations done by Cassandra behinds the scenes.</p>
  
  <p>I am following the Datastax Academy Course DS220 (see link at end) and implement the formula and will use the info from answers here as variables in that formula.</p>
  
  <p><a href="https://academy.datastax.com/courses/ds220-data-modeling/physical-partition-size" rel="noreferrer">https://academy.datastax.com/courses/ds220-data-modeling/physical-partition-size</a></p>