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

982

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
982
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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 />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×