links and object deletion

Mark Phillips mark at basho.com
Sun Jun 3 23:38:44 EDT 2012


Hi José,

On Fri, Jun 1, 2012 at 2:34 PM, José Ghislain Quenum <
jose.quenum at googlemail.com> wrote:

> Hi all,
> Suppose I have two objects O1 and O2, with O1 having a link (say tag is
> watches) to O2. What is the proper way to delete O2? Should I just delete
> O2 and then leave the link inconsistent until I find out and fix it? Or
> should I always check whether that object has links to it and clean them up
> before deleting the object. Please advise
>

There's no real issue if you leave a link dangling to an object that you've
deleted. The two things to be aware of:

* there will be some extra metadata on the object
* if you walk the link to the non-existant object it'll return a 404.

Mark



> José
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120603/62b4e630/attachment.html>


More information about the riak-users mailing list