Hi Dan,

Thanks for the help. I changed to list method but it seems I'm still doing
something wrong. Calling "Customer.list" raises an exception
"Riak::Bucket#keys is an expensive operation that should not be used in
production" with the results at the end of it.

Letting ripple aside, what would be  the recommended way to retrieve a list
of all documents/keys under a certain bucket? Should I use a map/reduce for
that?

Cheers,

Eric

2011/10/27 Dan Reverri <d...@basho.com>

> Hi Eric,
>
> I believe the method was changed to `list`; I don't know what version of
> Ripple changed the method name.
>
> Thanks,
> Dan
>
> Daniel Reverri
> Developer Advocate
> Basho Technologies, Inc.
> d...@basho.com
>
>
> On Thu, Oct 27, 2011 at 8:59 AM, Eric Chaves <e...@craftti.com.br> wrote:
>
>> Hi Guys,
>>
>> I'm trying to learn Riak using padrino + ripple and for that I created a
>> padrino project with one Customer model using the Ripple::Document model and
>> start playing around in the padrino console. The project setup seems to be
>> ok since I can create and save instance objects from padrino console however
>> whenever I call Customer.all I got a method undefined error.
>>
>> Am I doing something wrong here? Is there another way to retrieve all
>> documents within a bucket?
>>
>> Thanks in advance,
>>
>> Eric
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to