Created
March 16, 2011 23:30
-
-
Save PharkMillups/873537 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ncb000gt> question, when you store links is the order in which they are returned, | |
when querying, guaranteed at all (assuming multiple links)? | |
13:36 <seancribbs> ncb000gt: Riak doesn't change the order. But if you mean | |
whether the links, when followed to their destination objects, come back in | |
order, then no that can't be guaranteed automatically. | |
13:36 <seancribbs> it's possible to do, but not built-in | |
14:06 <ncb000gt> seancribbs: yea, i mean when followed. (by return I meant to whatever client requested it) | |
14:07 <seancribbs> so.. what you could do is make your own link-following function | |
implemented as a map, it should return lists/arrays of [bucket, key, index]. then | |
follow that with a map function that just gives you the object back with its index. | |
then finish with a reduce function that sorts by the index. | |
14:09 <ncb000gt> seancribbs: yea, that is the approach I was going to take, but wont | |
be able to work on it till later (personal project). | |
14:10 <seancribbs> cool. let us know how it goes | |
14:10 <ncb000gt> seancribbs: just wanted to make sure that what I was seeing was | |
accurate since order is important for my use case | |
14:10 <* seancribbs> nods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment