Sync Gateway attachments on separate disk


#1

Does sync gateway stores attachment in bucket or outside database (f.e. file system)?
If it is storing in file system is there any way or future plan to configure it to store it into separate disk or bucket?

The reason I am asking is I want to store pure documents in SSD storage and attachments in normal Hard disk to reduce the server cost.


#2

It’s stored in the bucket. I think we have plan to move it outside, @zgramana can tell you more on this.


#3

Any update about that?

We have a similar use case here. We’re thinking of storing attachment to an external disk as pvaghasi needs, but we could also consider detaching the attachment upon receipt and replacing by some URL in the Couchbase Document on the fly.

Maybe Zack/@zgramana could help here?


#4

How Sync Gateway stored attachments in the bucket?
As docs show that I can not delete attachments by SG REST API.
And I found a way to delete attachments by SG REST API. but I am not sure If the attachments is deleted in bucket?
How should I delete attachment by SG REST API completely?