Quantcast
Channel: Mobile - Couchbase Forums
Browsing all 1117 articles
Browse latest View live

How to know if a database is open or closed

I am running into the issue of database not open but before i address that, i was wondering if there is a way to determine the state of a database. I can see .close() method on Database but not much...

View Article


Create multiple couchbase lite databases

I don’t know if the error I am getting is related to the fact that i create two databases but the second database always is closed. Here is my code that creates the database. The main reason is that...

View Article


Active/Passive cluster replication

Hello, We run two clusters that need to be synchronized (active -passive). The passive cluster is used as Backup. We have have 2 applications: . Mobile application the synchronize data thought Sync...

View Article

Mutli-tenant + Mobile

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Unable to use cluster as a 2.8.2-sgreplica target

After launching a syncgateway2.8.2 that is configured to sg-replicate some documents from a bucket of a cluster, CouchbaseCloud (30-day trial) reiceves the document feed, but in a few minutes...

View Article


Constructing queries from String or JSON for CBL

I have a REST API written in node that was previously using Ottoman v2 to communicate with Couchbase Server but have shifted to using Sync and Lite to enable offline devices. I’ve created a Java...

View Article

MultiChangesFeed got error reading changes feed: Error while building channel...

Sync Gateway 2.8 Couchbase server 6.6.0 CE Since a month or so, we noticed timeouts from the Sync Gateway Admin API _changes (GET) endpoint like these: 2021-05-11T13:42:24.007Z [WRN] c:#1936...

View Article

Is it recommended to use pagination for querying data?

Will using pagination improve the performance for Android? If yes, there should be a guide for Android with Paging 3. 1 post - 1 participant Read full topic

View Article


Delete user session when a user gets deleted from SG

We have a use-case where we revoke access to users/devices that previously connected. When a call to the admin API endpoint to delete a user was done ({db}/_user/{name}), it seems the sessions still...

View Article


Syncgateway failed to start with error "Job for sync_gateway.service failed...

Hi Guys, I have one server where i have my couchbase and sync_gateway installed . CB server is up and running and i’m able to access the couchbase gui page as well. Sync gateway starts with the...

View Article

Android ProguardRules for CouchbaseLite v2.1.0

Dear Experts, I am using CouchbaseLite version - 2.1.0. I have added the below Proguard Rules: -keep class com.couchbase.litecore.**{ *; } -keep class com.couchbase.lite.**{ *; } -keep public class...

View Article

[Couchbase lite 2.8] [java] why System.exit in getting started?

Hello, In the getting started example the code finished by a System.exit because “This is needed for a tidy closedown of work executors” and if I don’t put this instruction, the java process is still...

View Article

[Couchbase lite 2.8 ee] is it possible to download associated javadoc?

Hi all, If I download cb lite connector through maven repository central, I can download sources and javadoc with maven commands, but it’s the community edition In our project, we will use the...

View Article


MutableDocument save null to int field

when I try: .setInt("startingCode", null); it doesn’t compile. The following works well: .setString(“payGradeGroup”, null); Is there a way to do that or string is the way to go? 2 posts - 2...

View Article

getDocument() returns null after upgrading to 2.8.5 from 2.8.1

Upgrading from CBL 2.8.1 to 2.8.5 introduced a bug which I wasn’t able to track down. Without making any changes to the app’s code other than updating dependencies seems to introduced the issue. The...

View Article


[Couchbase lite 2.8.4] Detect conflict on push (only) replication

Hi all, Is there any way to detect a conflict during a PUSH (only) replication ? (sync gateway allow_conflict parameter is set with false ) or anything which indicates to the client that the pushed...

View Article

Update array field of a document

I am getting the document to be updated like this. Idea is to add one more dictionary/map element to the array. The document looks like this: {id:'id', cycles: [{"id":1, "name":"cycle 1"}] } now i...

View Article


Deletion from mobile should not be sent to server

I want to delete files from mobile and not want them to be deleted from couchbase server. basically i want to delete 3 day old files that are already synced to server , and deletion should not be sent...

View Article

When deleting DB, I get RuntimeException: Cannot convert argument of type...

Sometimes it works; sometimes it doesn’t. My setup is typical. It is CBL 2.8.0 Android public class DBManager { private static Database database; private static DBManager instance = null;...

View Article

Can I effectively turn off sync gateway versioning by setting max versions to 1?

If I don’t care about previous revisions of documents can I safely set the max number of revisions allowed by sync gateway to 1? I just want to use sync gateway for authorization and syncing data to...

View Article
Browsing all 1117 articles
Browse latest View live