Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat makes Cassandra (and NoSQL in general) a better solution to an RDBMS?
    primarykey
    data
    text
    <p>Well, NoSQL is a buzzword right now so I've been looking into it. I'm yet to get my head around ColumnFamilies and SuperColumns, etc... But I have been looking at how the data is mapped.</p> <p>After reading <a href="http://arin.me/blog/wtf-is-a-supercolumn-cassandra-data-model" rel="noreferrer">this</a> article, and others, it seems the data is mapped in a JSON like format.</p> <pre><code>Users = { 1: { username: "dave", password: "blahblah", dateReged: "1/1/1" }, 2: { username: "etc", password: "blahblah", dateReged: "2/1/1", comment: "this guy has a comment and dave doesns't" }, } </code></pre> <p>The RDBMS format would be:</p> <pre><code>Table name: "Users" id | username | password | dateReged | comment ---+----------+----------+-----------+-------- 1 | dave | blahblah | 1/1/1 | ---+----------+----------+-----------+-------- 2 | etc | blahblah | 2/1/1 | this guy has a comment and dave doesn't </code></pre> <p>Assuming I understand this correctly and my above examples are right, why would I choose the RDBMS design over the NoSQL design? Personally, I'd much rather work with the JSON structure... Does this mean I should choose NoSQL over, say, MySQL?</p> <p>I guess what I'm asking is "when should I choose NoSQL over RDBMS?"</p> <p>On a side note, as I've said, I'm still not fully understanding how to go about implementing a Cassandra database. Ie, how do I <em>create</em> the above Users table in a new database? Any tutorials, documentation, etc you could point to would be great. My google'ing hasn't turned up much in terms of 'starting from scratch'...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload