OK - now I just feel silly.  I answered the first of my own questions.

 

Though the demo only involves how "people" relate to one another, it was
obvious that cross-bucket links are possible simply by the method to query
against them.

 

I suppose to know if Links are an appropriate method, one would need to know
that the Links would be used often to display these relationships to the
user.  In one of the video sessions, it was mentioned that user-session
queries using MapReduce were considered a "bug".  Is Link traversal
optimized in any manner that would make it a better candidate for this type
of model?

 

-m

 

From: riak-users [mailto:[email protected]] On Behalf Of
Mark A. Basil, Jr.
Sent: Friday, November 08, 2013 1:59 AM
To: [email protected]
Subject: Advice on commit hooks

 

Good morning.

 

First I would like to introduce myself as the FNG.  Hi there.

 

In attempting to solve a problem with a particular relational database, I
realized that the solution was simply to avoid the problem.  Long story
short, research led me to Riak, and I'm quite glad that it did.  I have a
question regarding Links and Link Traversal.  Can Links span buckets?  

 

Is the following possible?  If so, are cross-bucket links the best method
for these relationships?

 

/riak/dishes/saucer_a                                   -- with
</riak/combos/place_setting_a >; "member_of"

/riak/dishes/dish_a                                        -- with
</riak/combos/place_setting_a >; "member_of"

/riak/dishes/bowl_a                                       -- with
</riak/combos/place_setting_a >; "member_of"

 

/riak/combos/dish_set_a                            -- with
</riak/dishes/saucer_a; "includes", </riak/combos/place_setting_a >;
"member_of"

/riak/combos/place_setting_a                 -- with
</riak/combos/dish_set_a>; "includes"

 

If the above is both possible and appropriate -- how might one implement a
commit hook that, when a link is added to an item that defines an "includes"
relationship, the "member_of" relationship is automatically added?

 

-m

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to