It appears you cant do transactions in riak. How does one ensure data is correct?
Lets say we want to insert a comments. In redis i'd do
commentId=incr commentCount
multi
SET comment_post:commentId postId //for later use when we flag comments. We'll need to know where in the db it is
RPUSH post_comment:postId binaryValue //contains commentId in it + comment body
exec
In sql i'd insert a new row in a comment table with the text and post id. Both use more then one statement. How do i both insert the comment body and associate the post to the comment in riak as it has no transactions?
Another problem is if i modify a post. How do i update the post and update the tag list of post using that tag