Adding Sync Gateway bucket to existing system

28 views
Skip to first unread message

Traun Leyden

unread,
Oct 9, 2014, 5:00:07 PM10/9/14
to mobile-c...@googlegroups.com

If a system starts out with a "normal bucket":

Inline image 1

and then later Sync Gw is added to the picture, such that the normal bucket then becomes a "shadow bucket":

Inline image 2

Will the Sync Gw bucket be "fast forwarded" so that it contains all the data that was originally contained in the shadow bucket?



Adam Fraser

unread,
Oct 9, 2014, 5:51:17 PM10/9/14
to mobile-c...@googlegroups.com, tle...@couchbase.com
Yes - on Sync Gw startup it will process the shadowed bucket's history and copy the data over to the 'sync gw' bucket.  

This is covered in the documentation here.  Relevant excerpt:

When you start the Sync Gateway, it will run through the app bucket's history (also known as its TAP feed), copying any new or changed documents into the gateway database. Depending on how large the bucket is, this may take a while. Unfortunately there's no way to bypass this on subsequent launches of the Sync Gateway, due to limitations of the TAP feed implementation.

 When the documentation refers to 'copying any new or changed documents' above, it means any documents that are 'new or changed' from the SG bucket's perspective - it's processing the entire shadowed bucket's TAP feed.

- Adam
Reply all
Reply to author
Forward
0 new messages