Skip to content

Instantly share code, notes, and snippets.

@kafaichoi
Last active August 29, 2015 14:07
Show Gist options
  • Save kafaichoi/aac9865ae19fa20666c7 to your computer and use it in GitHub Desktop.
Save kafaichoi/aac9865ae19fa20666c7 to your computer and use it in GitHub Desktop.
CQL create table
CREATE TABLE shake_magnitudes (
event_id int,
user_id int,
recorded_at timestamp,
magnitude float,
PRIMARY KEY (event_id, user_id, recorded_at)
)
WITH CLUSTERING ORDER BY (user_id ASC, recorded_at ASC);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment