Re: Link walking with Erlang riak client

2012-06-20 Thread Morgan Segalis
Actually this is what I'm doing… A as an unique ID, lets call it A-UID A and B are stored in the bucket with keys A-UID and B-UID The link in B for A will be named A-UID And link in A for B will be named B-UID Thanks, Morgan. Le 20 juin 2012 à 15:28, Bryan Fink a écrit : > On Wed, Jun 20, 20

Re: Link walking with Erlang riak client

2012-06-20 Thread Bryan Fink
On Wed, Jun 20, 2012 at 8:00 AM, Morgan Segalis wrote: > Why would you think that fetch both user and look through the links is > fastest than A -> B -> A ? Are links really that slow ? It's not that links are that slow, but that they're not that focused. Unless you're using B's key as the tag o

Re: Link walking with Erlang riak client

2012-06-20 Thread Morgan Segalis
Hi Bryan, Thank you for your answer, that is what I was looking for at first ! Why would you think that fetch both user and look through the links is fastest than A -> B -> A ? Are links really that slow ? Thanks, Morgan. Le 20 juin 2012 à 13:41, Bryan Fink a écrit : > On Tue, Jun 19, 2012

Re: Link walking with Erlang riak client

2012-06-20 Thread Morgan Segalis
Hi Eric, Thank you for your answer. Yeah apparently, Links are not the Eldorado I though it was. In my head it was a pointer to another record, and accessing it would be faster than regular requests… I'm not really looking for more than 100 friends in one user's list really. (Except the rare u

Re: Link walking with Erlang riak client

2012-06-20 Thread Bryan Fink
On Tue, Jun 19, 2012 at 12:35 PM, Morgan Segalis wrote: > Hi everyone ! Hi, Morgan. > 1 - Are Link walking in Erlang fast & easy ? Link-walking in the Erlang client is provided via the MapReduce interface. Instead of a 'map' or 'reduce' phase, specify a 'link' phase like: {link, Bucket, Ta

Re: Link walking with Erlang riak client

2012-06-19 Thread Eric Moritz
Links may not be the most appropriate way to model a set of associated users. They have a limited length and both the user data and the links have to be saved at the same time. What you can do is emulate a set using a separate bucket and secondary indexes. So basically the bucket would look like

Link walking with Erlang riak client

2012-06-19 Thread Morgan Segalis
Hi everyone ! I'm looking for a NoSQL solution to get ride of MySQL. In this particular issue, I think that Riak is one of the top of my choices in order to do what I'm looking for. I would like to store all my users into Riak. I understand that Riak is document oriented, so that's great for get