Questions tagged [couchbase-sync-gateway]

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and later to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and newer versions to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Resources:

230 questions
1
vote
1 answer

Couchbase large document did not Sync Gateway

I am storing base64 data into Couchbase document. So its size being around 3.6MB in Couchbase bucket. This large size document worked on web. But this large document did not sync into Mobile. If remove that base64 property from document, that…
Sivailango
  • 544
  • 1
  • 6
  • 15
1
vote
0 answers

Calling remote REST services from Couchbase Server

I am using Couchbase to store data in No SQL format, I would like to know what is the best way to call a REST service to any remote java Application whenever there will be any change in the No SQL doc. Is there a need to build a plugin or something…
1
vote
1 answer

what is the advantage/disadvantage in each way to update a lot of documents in Couchbase, Java SDK?

i have sometimes the need to update many documents at once, 10K or even more, and I am thinking what is the advantage/disadvantage in each way? I thought of two ways to do it, and I will happy to understand what is advantage/disadvantage and to to…
Gil Matzov
  • 213
  • 2
  • 12
1
vote
2 answers

Deleting document with PHP API doesn't sync to sync gateway Couchbase

I use PHP SDK to get documents from a design view, and delete them. $myCluster = new CouchbaseCluster('couchbase://127.0.0.1'); $myBucket = $myCluster->openBucket($bucketName); $query = CouchbaseViewQuery::from('dev_view', 'old_docs'); $res =…
Hadi Sharghi
  • 903
  • 16
  • 33
1
vote
2 answers

Couchbase Mobile (Sync Gateway) sample TODOlite application doesn't replicate; complains _facebook doesn't exist

My objective: get https://github.com/couchbaselabs/ToDoLite-iOS syncing with a Couchbase Server and sync gateway on localhost rather than the default demo URL. I run sync gateway like so: bin/sync_gateway -url http://localhost:8091 And then the only…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
1
vote
1 answer

How to delete a document locally so the server retains the copy in couches server

I have succuessfully implemented an application using Couchbase Server, Couchbase Lite (iOS and Android) and Couchbase Sync Gateway. A module in the application sync certain documents every 3 minutes. Now, the challenge is to retain only the last…
1
vote
1 answer

Document structure returned by include_docs couchbase

I have an Ember app that is interfacing with Couchbase Lite via ember-couchdb-kit. I would like to run it on a desktop. I have used CouchDB successfully in the past, but want to migrate to Couchbase Server to better control data…
dysbulic
  • 3,005
  • 2
  • 28
  • 48
0
votes
0 answers

How to change channel of couchbase using Java api

We have some documents in couchbase in which we have channel like follow channel:['job1'] Now we have to add another channel that is job2 So channel list will be channel :['job1','job2'] Can anyone having idea about how to modify that channel…
0
votes
0 answers

Can I use the JWT subject as a UID?

Can the sub field of a JSON Web Token be used as a UID for identifying a user inside my app or do I have to use the username that is generated by my database (Couchbase) which looks like this: accounts.google.com_114...749 as a UID?
PlutoHDDev
  • 540
  • 7
  • 25
0
votes
1 answer

CouchBase Sync Gateway synchronizing

From: Couchbase Sync Gateway I have some questions of the same subject. Since last answer, things change and there is a tutorial for sync user…
0
votes
1 answer

Custom Authentication with 2 Sync Gateway

I'm trying add Custom Authentication. I use 2 instances of Sync-Gateway behind an Nginx. So how can we manage Session with 2 instances of Sync-Gateway? The custom authentication is achieved by calling the "//_session" endpoint. This then returns a…
youssef Liouene
  • 873
  • 6
  • 15
  • 28
0
votes
1 answer

how we can create External UDF to execute N1QL?

i had created External UDF to execute N1QL but when we execute function then get error function that i created function myFunction() { var N1qlQuery = couchbase.N1qlQuery; query = N1qlQuery.fromString('select * from test.`101`.cust1 where…
Avinash Kumar
  • 85
  • 1
  • 6
0
votes
1 answer

Pulling data from Couchbase server to coubase lite using syncgateway in C# console application

I am trying to create a simple console application in .Net(Windows machine) which connects couchbase lite -> sync-gateway -> couchbase server (hosted in a remote machine). but the data is not pulled from the server to the lite. Here is the…
0
votes
1 answer

Couchbase.Lite fails to replicate

I am trying to replicate a Couchbase Enterprise DB via the C# Couchbase.Lite library. The sync gateway is accessed via an SSH tunnel. Even though am I using it as described in the documentation the replication does not work. These are the Couchbase…
Philipp
  • 876
  • 10
  • 23
0
votes
1 answer

How to use admin REST API in Xamarin application to create new users in couchbase sync gateway?

I am creating a xamarin mobile application and I want to create new users from the mobile application , I know I can create users from sync gateway configuration or from admin REST API , I tried to use the admin REST API in the application but I got…