Closed adamcfraser closed 4 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.
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.
Closing based on age, priorization - can be revisited in future if escalated.
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.