Skip to content

Instantly share code, notes, and snippets.

@olauzon
Created June 12, 2012 17:35
Show Gist options
  • Save olauzon/2918927 to your computer and use it in GitHub Desktop.
Save olauzon/2918927 to your computer and use it in GitHub Desktop.
Cassandra counter example
-- Works with CQL SPEC 3.0.0 and Cassandra 1.1.1
-- Usage: cqlsh -3 < counter.cql
CREATE TABLE counters (
counter_name varchar,
value counter,
PRIMARY KEY (counter_name)
)
WITH comment='Aggregate counters';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment