Re: Writing a reduce phase with reduce_phase_only_1 and additional parameters

2012-06-01 Thread Bryan Fink
On Wed, May 23, 2012 at 3:03 PM, Manuel Gomez wrote: > This is my function so far: > > reduce_slice(WList,{Page,PageSize}) -> >   lager:info("Page and PageSize ~p - ~p",[Page,PageSize]), >   lists:sublist(WList, Page, PageSize). > > > This "works". The problem is that because the reduce phase gets

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 ~