Hi Bren,
On Sat, May 11, 2013 at 8:06 PM, Bren Norris <[email protected]> wrote: > I'm evaluating Riak for an implementation I have planned. > > I'd like to know if a single key can be referenced from multiple buckets > as to create the following scenario: > > johnsFriends contains bettysProfile > davesFriends contains bettysProfile > betty contains bettysProfile > > betty updates profile and all inferences to the profile receive the > benefit of that update. > > Basically, not to dissimilar to an object reference, and if you know LDAP, > very similar to "Aliases". > > > This wouldn't be possible in the way you're envisioning it. Keys are unique to buckets. That said, one way you might do it: # Store pointers to friends as part of the profile object. bucket = profile key = john-profile value = {name:, } {location:, } . . {friends: {Name, betty_profile} {Name, cmeik_profile} } This would get problematic when that profile object got too big, but if the number of friends was bounded (doubtful) or you were OK with writing a new object after it hit a given size, you could do it this way. Hope that helps. Mark twitter.com/pharkmillups > Thanks guys. > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
