Skip to content

Instantly share code, notes, and snippets.

@spacejam
Created May 30, 2015 03:14
Show Gist options
  • Save spacejam/3d0fdaa72fc50f251748 to your computer and use it in GitHub Desktop.
Save spacejam/3d0fdaa72fc50f251748 to your computer and use it in GitHub Desktop.
create KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3}; -- pick replication factor of size of cluster
create table test.test ( thing text PRIMARY KEY);
-- on each host
CONSISTENCY ALL;
INSERT INTO test.test (thing) VALUES ('A');
-- does this complete? if not, you may have a partition x_x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment