Skip to content

Instantly share code, notes, and snippets.

@shanemhansen
Created July 8, 2014 17:16
Show Gist options
  • Save shanemhansen/91700e4500406ad62617 to your computer and use it in GitHub Desktop.
Save shanemhansen/91700e4500406ad62617 to your computer and use it in GitHub Desktop.
CREATE TABLE timeline (
mid int,
uid text,
ts timestamp,
PRIMARY KEY ((mid, uid), ts)
)
// query is
select ts from timeline where mid=? and uid=? and ts >= ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment