Sort by secondary index

2012-05-23 Thread Андрей Хомяков
Hello! I'm trying to sort objects in riak by secondary index. Is it possible? I've read some sources and understood, that standard map-reduce function for key-sort (reduce_sort in riak_kv_mapreduce.erl) orders list in memory. Such approach can be applied to ids, but not the best way for sorting

Re: Riak / Search via Python Client, no Results from Server

2012-05-23 Thread claudef
Thanks Sean for the hint .. sure, you right, that wildcard syntax was too short ! Still like this, the main issue remains. The search function is not yet activated at the server side, even having the parameter set to true in the /etc/app.config file.Whatever syntax sent to the server is

Reviewers for Riak Handbook Update

2012-05-23 Thread Mathias Meyer
Hey! I'm just about wrapping up the changes and new content for the upcoming update of the Riak Handbook. To make sure what I wrote makes (mostly) sense, I'm looking for one or two technical reviewers of the new content. The focus is more on whether everything makes sense, so not necessarily o

Mapreduce/2i queries -- recommendation for limiting object

2012-05-23 Thread Senthilkumar Peelikkampatti
I am looking for recommendation for limiting no of records in M/R or 2i queries. MR might return 1000s of object but I just want 10 of them. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.ba

Re: Riak / Search via Python Client, no Results from Server

2012-05-23 Thread Shuhao Wu
Yes. You have to do search-cmd install bucketname I believe Shuhao On May 23, 2012 11:20 AM, wrote: > Thanks Sean for the hint .. sure, you right, that wildcard syntax was too > short ! > > Still like this, the main issue remains. The search function is not yet > activated at the server side, ev

Writing a reduce phase with reduce_phase_only_1 and additional parameters

2012-05-23 Thread Manuel Gomez
I need to write a a reduce_slice function in erlang that I'll load into riak, I'm doing this so I don't need to use the javascript one which has already once maxed out the js_thread_stack memory. This is my function so far: reduce_slice(WList,{Page,PageSize}) -> lager:info("Page and PageSize ~

Re: Riak / Search via Python Client, no Results from Server

2012-05-23 Thread claudef
Dear Shuhao Wu, Thanks so much, that was the key to the solution! rel/riak/bin/search-cmd install ramtest :: Installing Riak Search <--> KV hook on bucket 'ramtest'. I also needed to exclude all key/data from the bucket and reinsert them again to make use of the pre-commit hook feature. Once

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Steve Warren
I'm seeing this pretty consistently and have no explanation for it. I delete a large number of keys (20k to 100k), but when I then search on the keys ($key/0/g) anywhere from 0-200 or so of the deleted keys show up in the results. It doesn't matter how long I wait after completing the deletion step

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Shuhao Wu
Riak is eventually consistent. Deleting it doesn't show up immediately. There is an option like delete_immediate Shuhao On May 23, 2012 4:08 PM, "Steve Warren" wrote: > I'm seeing this pretty consistently and have no explanation for it. I > delete a large number of keys (20k to 100k), but when I

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Kyle Kingsbury
On 05/23/2012 01:08 PM, Steve Warren wrote: I'm seeing this pretty consistently and have no explanation for it. I delete a large number of keys (20k to 100k), but when I then search on the keys ($key/0/g) anywhere from 0-200 or so of the deleted keys show up in the results. It doesn't matter how

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Steve Warren
I have a 5 node cluster and given a successful delete call, I expect to get the latest data back given the bucket properties (as shown below)... Bucket properties: {"props":{"name":"mybucket","allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"cha

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Steve Warren
Whew! I was afraid I was the only one! On Wed, May 23, 2012 at 1:37 PM, Kyle Kingsbury wrote: > On 05/23/2012 01:08 PM, Steve Warren wrote: > >> I'm seeing this pretty consistently and have no explanation for it. I >> delete a large number of keys (20k to 100k), but when I then search on >> the

Re: Riak Client Resources, Deleting a Key Doesn't Remove it from bucket.keys

2012-05-23 Thread Reid Draper
Steve, Kyle, In order to track it down, I'd like to be able to reproduce this issue. Can you provide some minimal Java code to reproduce, from an empty Riak cluster? Please include any changes to the Riak app.config as well. Some things to think about in writing code to reproduce: * Are you conn