Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Forked from rcrowley/gist:128985
Created June 12, 2009 22:57
Show Gist options
  • Save phatduckk/128988 to your computer and use it in GitHub Desktop.
Save phatduckk/128988 to your computer and use it in GitHub Desktop.
// Pageview/click analytics in Cassandra?
pageAnalytics = {
"come.foo/index.html" : { // super column family
"pageviews": { // Super Column family
"someuuid" : {"cookie": "OH HAI", "url": "come.foo/index.html", "layout": 47, "ip": "1.2.3.4"},
"someuuid2" : {"cookie": "OH HAI", "url": "come.foo/index.html", "layout": 47, "ip": "1.2.3.4"},
},
"clicks": { // Super Column family
"someuuid" : {"cookie": "OH HAI", "target": "http://interiorcrocodilealligator.com/", "layout": 47, "ip": "1.2.3.4", "x" : 120, "y": 375},
"someuuid2" : {"cookie": "OH HAI", "target": "http://interiorcrocodilealligator.com/", "layout": 47, "ip": "1.2.3.4", "x" : 120, "y": 375},
},
"stats" : { // column family - denormalized stats
"clicks" : 2,
"pageviews": 2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment