Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Data Modeling In Cassandra<br />Jahangir Mohammed<br />md.jahangir27@gmail.com<br />
ELEMENTS<br />Keyspace:<br />Like Database. <br />Container for CFs.<br />Column Family:<br />Like Table(But, not exactly ...
ELEMENTS<br />Super Column:<br />Special column.<br />Sorted associative array of columns.<br />Map of maps.<br />Only one...
elements<br />Composite key:<br />Composite Key name(e.g. <systemid:time>).<br />Subcolumns inside supercolumn are not ind...
ROWS<br />Skinny Rows:<br />Small number of columns.<br />Like RDBMS rows.<br />Optional columns(schema less design).<br /...
	ADVICE	<br />Think about access patterns.<br />Write sample queries.<br />
Upcoming SlideShare
Loading in …5
×

Data modeling in cassandra

1,169 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Data modeling in cassandra

  1. 1. Data Modeling In Cassandra<br />Jahangir Mohammed<br />md.jahangir27@gmail.com<br />
  2. 2. ELEMENTS<br />Keyspace:<br />Like Database. <br />Container for CFs.<br />Column Family:<br />Like Table(But, not exactly a relational database table).<br />Container of rows.<br />Row:<br />Sorted collection of columns.<br />Column:<br />Basic unit of data structure.<br />Triplet of name, value and timestamp.<br />
  3. 3. ELEMENTS<br />Super Column:<br />Special column.<br />Sorted associative array of columns.<br />Map of maps.<br />Only one level deep.<br />Super Column Family:<br />Container of rows having super columns.<br />4-D DHT = Standard CF:<br />[Keyspace][ColumnFamily][Key][Column].<br />5-D DHT = Super CF:<br />[Keyspace][ColumnFamily][Key][SuperColumn][SubColumn].<br />
  4. 4. elements<br />Composite key:<br />Composite Key name(e.g. <systemid:time>).<br />Subcolumns inside supercolumn are not indexed.<br />May be used when 10’s of thousands of subcolumns.<br />Valueless column:<br />Column’s name is the value and value is empty.<br />
  5. 5. ROWS<br />Skinny Rows:<br />Small number of columns.<br />Like RDBMS rows.<br />Optional columns(schema less design).<br />Wide Rows:<br />Loads of columns.<br />Typically monitoring applications or time series data.<br />Column Sorting.<br />
  6. 6. ADVICE <br />Think about access patterns.<br />Write sample queries.<br />

×