Migrating from CouchDB to Sync Gateway

23 views
Skip to first unread message

Traun Leyden

unread,
Sep 6, 2016, 12:03:05 PM9/6/16
to mobile-c...@googlegroups.com

This came up on an internal mailing list and I wanted to make sure it got disseminated to a wider audience.

Using the built-in replicator in Sync Gateway to sync with CouchDB doesn't currently work because it expects the bulk_get endpoint which has not been historically supported on CouchDB.  (later CouchDB versions may have added support for bulk_get, but I don't know the status and it's definitely never been tested).

It would be possible to enhance the Sync Gateway replicator to support sync'ing with CouchDB, by falling back to individual GET requests when the bulk_endpoint returns a 404 error.

In the meantime though, you'll need to use the built-in CouchDB replicator to push the data to Sync Gateway.  That should work, but even that might run into issues because it's not currently in our functional test matrix.

Jens Alfke

unread,
Sep 7, 2016, 12:58:44 AM9/7/16
to mobile-c...@googlegroups.com

On Sep 6, 2016, at 9:03 AM, Traun Leyden <tle...@couchbase.com> wrote:

In the meantime though, you'll need to use the built-in CouchDB replicator to push the data to Sync Gateway.  That should work, but even that might run into issues because it's not currently in our functional test matrix.

It’s definitely the intention that CouchDB’s replicator should be able to replicate to Sync Gateway, whether or not we currently have the testing resources to guarantee it, so if someone finds incompatibilities, please file an issue on Github :)

—Jens
Reply all
Reply to author
Forward
0 new messages