Created
October 27, 2010 20:13
-
-
Save PharkMillups/649858 to your computer and use it in GitHub Desktop.
This file contains 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
11:34 <notbenh> Hello all, I'm new to riak and can't seem to find if riak has an 'update' idea | |
11:34 <seancribbs> notbenh: creating a new datum is the same as updating an existing one. it's key-value | |
11:34 <seancribbs> with the exception that you need to send the vclock when you update | |
(most clients do this for you) | |
11:35 <notbenh> seancribbs: ok so if I need to update a part of a doc I need to do the merge | |
and then just reload the merged doc | |
11:35 <seancribbs> you'll need to write back the whole thing | |
11:36 <notbenh> ie if current store is $key => {title => $title, body => $body} and I want to | |
update title to $new_title I would just store $key => {title => $new_title, body => $body} | |
11:36 <notbenh> thats simple enough | |
11:36 <notbenh> thanks | |
11:36 <seancribbs> right | |
11:37 <notbenh> seancribbs: perfect thanks | |
11:38 <notbenh> seancribbs: does riak have a history (thinking git) such that I could see | |
that a doc was changed from $title to $new_title or is that something that I should manage | |
if I needed that | |
11:38 <notbenh> I don't yet but it's just something I though of | |
11:38 <seancribbs> you'll need to do that yourself, i.e. keep a list of changes | |
11:39 <notbenh> simple enough | |
11:39 <notbenh> thanks again | |
11:40 <seancribbs> you can do cool things with links to implement something like that. | |
it's in erlang but our wriaki demo app does that **( wriaki ---> http://github.com/basho/wriaki)** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment