3. NUMBERS
25% of the Fortune 100 use it
Apple - 75 000 nodes, 10 PB of data
Netflix - 2500 nodes, 1 trillion req/day
DataStax - professional Cassandra support
Meetup - 167 Groups, 114 Cities, 41 Countries
20. UPDATE
UPDATE offers SET
brand = 'Ford',
model = 'Mustang'
WHERE
username = 'jdoe'
AND date = '2014-08-11 17:12:32+0200';
Use upsert (insert same data) when possible
NO updating of primary key fields
21. DELETE
DELETE FROM offers
WHERE username = 'jdoe'
AND date = '2014-08-11 17:12:32+0200';
tombstones
22. SELECT
SELECT username, date, brand, model
FROM offers
WHERE username = 'jsmith';
username | date | brand | model
----------+--------------------------+-------+-------
jsmith | 2014-05-11 01:22:11+0200 | Ford | Orion
jsmith | 2014-09-09 11:35:20+0200 | BMW | 118d
jsmith | 2014-09-19 11:35:20+0200 | BMW | 120i
jsmith | 2014-09-20 17:12:32+0200 | Audi | A6
23. APPS
15+ languages supported
var cql = require('node-cassandra-cql');
var client = new cql.Client({
hosts: ['127.0.0.1:9042'],
keyspace: 'test'
});
client.execute('SELECT * FROM test_table', [],
function(err, result) {
for (var i = 0; i < result.rows.length; i++) {
console.log(result.rows[i].get('id'));
console.log(result.rows[i].get('test_value'));
}
}
);