couchbase / sync_gateway

Manages access and synchronization between Couchbase Lite and Couchbase Server
https://www.couchbase.com/products/sync-gateway
Other
448 stars 138 forks source link

Support storing attachments in a separate bucket #2629

Closed adamcfraser closed 4 years ago

adamcfraser commented 7 years ago

Couchbase Server best practices recommend keeping binary and json data in separate buckets. Sync Gateway should support an optional 'binary bucket' for attachment storage.

This will reduce view indexing time, and avoid attachment overhead on Sync Gateway's mutation feed.

Old revision bodies (currently stored as binary) could also be moved to this bucket, although their shorter lifespan makes this less critical.

adamcfraser commented 7 years ago

Longer-term we are still evaluating other options for attachment storage (including pluggable storage). This solution doesn't change that strategy - just provides more options in the short term.

adamcfraser commented 7 years ago

To support existing deployments that are migrating to using an attachment bucket, we should support the following:

This doesn't preclude future development of a one-time attachment migration tool.

adamcfraser commented 4 years ago

Closing based on age, priorization - can be revisited in future if escalated.