Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any data modeling exercises for Cassandra like Retwis for Redis?

I'm trying to learn how to map the entities/actors/objects/things in my application for storage in Cassandra. There was a great tutorial for Redis on modeling Twitter data and typical access patterns called Retwis [1]. I've found a couple of examples for Cassandra.

How did you start to gain an intuition for Cassandra's data model?

[1] http://retwis.antirez.com/

like image 876
z8000 Avatar asked Feb 24 '10 23:02

z8000


People also ask

Which is faster Redis or Cassandra?

Because Redis stores voluminous data in memory, its transactional response times are much faster than Cassandra that persists data to disk by performing traditional read-write transactions, albeit much quicker than a conventional RDBMS.

What is data Modelling in Cassandra?

Cassandra data model contains keyspaces, tables, and columns. A keyspace is the container of all data in Cassandra. Replication is specified at the keyspace level. Tables and columns contain the key value data in Cassandra. Every table should have a primary key, which can be a composite primary key.


2 Answers

http://github.com/ericflo/twissandra is a twitter clone in the same vein as retwis, originally for 0.3 and now being updated for 0.6. Catch erifclo in #cassandra on irc if you have questions.

like image 129
jbellis Avatar answered Sep 21 '22 16:09

jbellis


  • you should start with WTF is a SuperColumn to understand the data model.

  • up and running with cassandra is also a very good starting tutorial and it has example schemas for a blog and for twitter.

like image 37
Vitaly Kushner Avatar answered Sep 23 '22 16:09

Vitaly Kushner