Created
July 8, 2014 17:16
-
-
Save shanemhansen/91700e4500406ad62617 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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