Skip to content

Instantly share code, notes, and snippets.

@phatduckk
Created March 16, 2010 01:59
Show Gist options
  • Save phatduckk/333564 to your computer and use it in GitHub Desktop.
Save phatduckk/333564 to your computer and use it in GitHub Desktop.
Comments { // CF - NOT SUPER
uuid_1 : {
title: some title for the comment,
body: this is the body of the commment,
author: some dude
},
uuid_2 : {
title: another title,
body: bla bla,
author: joe balls
},
}
BlogComments { // CF:
blogentry-uuid : { // row key
timeuuid_1: uuid_1 // reference to a row key in Comments CF,
timeuuid_2: uuid_x // reference to a row key in Comments CF,
timeuuid_3: uuid_y // reference to a row key in Comments CF,
timeuuid_4: uuid_z // reference to a row key in Comments CF,
}
}
1) slice on BlogComments/blogentry-uuid
2) grab the column values u just got from the slice...
3) run a multiget on those values against the Comments CF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment