Thanks Alexander, Is there any facility in riak that enables me to do something like this:
UPDATE obj set link=nil where link='Blah'; Kind regards, Joshua On Sun, Feb 6, 2011 at 5:51 PM, Alexander Sicular <[email protected]>wrote: > Riak links are unidirectional and non-reciprocal. If you did not > explixitly set a link on the child to the parent then it does not > exist. If you did set links on the children then a traversal/loop will > work but remember to include the body (value) in the rewrite. Write > links + body or you lose the body. > > -alexander > > On 2011-02-06, Joshua Partogi <[email protected]> wrote: > > Hi all, > > > > I have a link between Parent object and Child objects > > e.g: > > > > Parent > > -- Child1 > > -- Child2 > > -- Child3 > > > > Now when I delete Parent, I want the links from Child to Parent to be > > removed as well. > > > > I can traverse/loop through all the Children that Parent have and remove > the > > link one by one, but I was thinking if there is a more elegant way to do > it > > in Riak that I don't know. > > > > I am using the Ruby Riak/Ripple library. > > > > Thanks for your help. > > > > Kind regards, > > Joshua. > > > > -- > > http://twitter.com/jpartogi > > > > -- > Sent from my mobile device > -- http://twitter.com/jpartogi
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
