Network connectivity is fine. When I configure an in-memory database in the sync gateway, response time is about 3-4 seconds, but when I replicate with a database that is in a couchbase server, latency grows to more than 10 seconds. Do I need to configure something on the CouchBase server?
The Couchbase usage is very simple, listen to a live query for items matching a condition. I suppose the view is created on the local database of the couchbase lite client. If I create the same view on the couchbase server, will the overall performance improvement?
This is my sync function in the gateway:
function(doc, oldDoc) {
if (doc.group) {
channel(doc.group)
} else if (oldDoc.group) {
channel(oldDoc.group)
}
}
In this line “09:57:08.922005 2016-06-28T09:57:08.922Z Cache: Received #29 after 3726ms (”{a6718ab8-365b-428a-b269-0bc7ef6f6c29}" / “1-a502e799c166a20023793d6b45a2cd93”)" it takes more than three seconds to do an operation. Sync gateway and Couchbase Server 4.1.1 are running in the same Azure machine. Thanks in advance.