Re: Pagination with Ripple

2012-07-18 Thread Matthew Tovbin
Martin, You may try to use range queries for this purpose in couple with LevelDB as a backend. .../buckets//\$key// And in case you a ready to sacrifice performance, you may use Solr, which is available through Riak Search

Re: Pagination with Ripple

2012-07-18 Thread Martin Stabenfeldt
Thanks, Matthew! I´ll give that a go! :-) -- Martin Stabenfeldt -- Martin Stabenfeldt Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, 18 July 2012 at 09:51, Matthew Tovbin wrote: > Martin, > > You may try to use range queries > (https://github.com/basho/riak-ruby-

Updating an index value using Java API

2012-07-18 Thread Kaspar Thommen
Hi, Say I have a 'users' bucket that stores user data (name, email) and I also have secondary index to access users by e-mail, how do I update the index in case a user's e-mail address changes? The only approach I found so far was to completely delete the user object, which implies a deletion of

Re: Pagination with Ripple

2012-07-18 Thread Martin Stabenfeldt
If someone has an example on how this is implemented with Ripple, I´d be very happy to see them! :-) -- Martin Stabenfeldt Tlf: +47 93441707 On Wednesday, 18 July 2012 at 09:59, Martin Stabenfeldt wrote: > Thanks, Matthew! > > I´ll give that a go! :-) > > -- > Martin Stabenfeldt > >

Re: Pagination with Ripple

2012-07-18 Thread Alex Thompson
My 2c: 1000s of subscribers per list isn't a problem. Just have a data object which represents the subscriber list, store a list of subscriber ids in the subscriber list object. Load the whole list every time, and sort/paginate in your app code. Unless you're planning on shuffling the lists a

Re: Range Loop Timeout Error after (after disk space over limit)

2012-07-18 Thread Arnaud Wetzel
Ryan, Increasing "ulimit -n" (current value is 4096, I have tested from 1024 to 20) does not change anything, always the same errors : {timeout,range_loop} lookup/range failure: {{badfun,#Fun},[{mi_server,iterate,6},{mi_server,lookup,8}]} I cannot find the command "repair" that you talk about

Re: Range Loop Timeout Error after (after disk space over limit)

2012-07-18 Thread Ryan Zezeski
The `badfun` is a new error. That wasn't in your original email. I'm not sure why you are seeing that. Are all your Riak nodes using 1.2.0-rc1? Can you give me more information on your cluster setup? Are there any other errors in you logs? The more information the more I can help. The repair

Re: Range Loop Timeout Error after (after disk space over limit)

2012-07-18 Thread Arnaud Wetzel
Actually I had never seen this error before, and dont see it anymore now (maybe it was because of the migration to 1.2.0-rc1). The problem is difficult to describe because there are different errors every time I make tests : here is a list of them (error appears during uncorrelated riak search quer

Re: Intermittent MapReduce crashes (reserve_vm)

2012-07-18 Thread Matthew Tovbin
Hi Brian, I've also started getting the same error lately. Did you able to solve it? Does any one has a clue what to do with it?! -Matthew On Fri, Apr 27, 2012 at 10:38 PM, Brian Conway wrote: > Any ideas? Using JS for MapReduce, I'm currently unable to do anything > except trivial tasks wi

Re: Intermittent MapReduce crashes (reserve_vm)

2012-07-18 Thread Matthew Tovbin
The strangest thing is that results of these calls in riak console return do not make any sense: rpc:multicall(supervisor, count_children, [riak_pipe_builder_sup]). rpc:multicall(supervisor, count_children, [riak_pipe_fitting_sup]). rpc:multicall(riak_kv_js_manager,pool_size,[riak_kv_js_map]).