Attachment Support


#1

Hi, Does couchbase-ruby support attachments? I need to add images in my application which is written in rails 5.0.1 and ruby 2.3.3. If there is no support, which approach should I take to achieve image upload.


#2

no, it does not support attachments. You can try to keep your attachments externally, for example in S3. In couchbase document you will need only meta information, like bucket, path etc.

External approach always more efficient, because you can configure your HTTP frontend to serve attachments directly from the storage and skip application and database altogether.