Ripple file attachments

Mark Phillips mark at
Thu Jan 10 20:30:21 EST 2013

Hi Ariel,

On Mon, Jan 7, 2013 at 7:35 PM, Ariel Valentin <ariel at> wrote:
> Thanks for the reply.
> I recently learned about carrierwave, which does not have a dependency on activerecord. I think am going to give that a try. I don't like the idea of having embedded documents in this case but rather a reference to a value in a separate bucket.
> I will RTFM when I get a chance but is 4MB a magic number? What happens when an entry exceeds that size?

That's around where Riak will start to become less-than-happy with the
object size it has to buffer in memory and then write to disk. There's
nothing hard-coded in Riak to prevent you from storing something
bigger than 4MB, nor will it result in total protonic reversal [0] if
you attempt to do so. But, to keep things performant, that's around
where we advise people to cap object sizes if possible. YMMV.

Hope that helps.



> Thanks,
> Ariel
> ---
> Sent from my mobile device. Please excuse any errors.
> On Jan 7, 2013, at 10:04 PM, Mark Phillips <mark at> wrote:
>> Hi Ariel,
>> On Tue, Dec 18, 2012 at 7:23 PM, Ariel Valentin <ariel at> wrote:
>>> Does Ripple provide file attachement functionality similar to paperclip or
>>> attachement_fu?
>>> I'd like to be able to attach binary data to a Ripple Document object that
>>> is being stored in a different bucket.
>> It looks like you can add any property to Ripple::Document [0]. Though
>> it doesn't seem to be documented (as far as I can tell), this could
>> certainly be a binary blob. (Just make sure said blob isn't much
>> bigger than 4MB or so.)
>> Also, since you mentioned it, someone released a Paperclip module for
>> Riak [1] about a month back.
>> Hope that helps.
>> Mark
>> [0]
>> [1]
>>> Ariel Valentin
>>> e-mail: ariel at
>>> website:
>>> skype: ariel.s.valentin
>>> twitter: arielvalentin
>>> linkedin:
>>> ---------------------------------------
>>> *simplicity *communication
>>> *feedback *courage *respect
>>> _______________________________________________
>>> riak-users mailing list
>>> riak-users at

More information about the riak-users mailing list