Questions tagged [couchbase-lite]

Couchbase Lite is an ultra-lightweight, reliable, secure JSON database built for online/offline mobile application needs and is part of Couchbase's Mobile product.

As a lightweight, document-oriented NoSQL database engine, Couchbase Lite supports data synchronization and is suitable for embedding into mobile applications.

Lightweight means:

  • Embedded – the database engine is a library linked into the app, not a separate server process
  • Small code size – important for mobile apps because they’re often downloaded over cell networks
  • Quick startup time – important because mobile devices have relatively slow CPUs
  • Low memory usage – typical mobile data sets are relatively small, but some documents might have large multimedia attachments
  • Good performance – exact figures depend on your data and application

Document-oriented means:

  • Stores records in flexible JSON format instead of requiring predefined schemas or normalization
  • Documents can have arbitrary-sized binary data, such as multimedia content
  • Application data format can evolve over time without any need for explicit migrations
  • Language native query builder API provides fast lookups without needing special query languages

Syncable means:

  • Any two copies of a database can be brought into sync via an efficient, reliable, and proven replication algorithm
  • Sync can be on demand or continuous
  • Devices can sync with a subset of a large database on a remote server
  • The sync engine supports intermittent and unreliable network connections
  • Conflicts can be detected and resolved
  • Revision trees allow for complex replication topologies – including server-to-server (for multiple data centers) and peer-to-peer – without data loss or false conflicts

Couchbase Lite provides native APIs for:

  • Seamless iOS (Objective-C and Swift), Android (Java), and .NET development
  • Frameworks such as Xamarin
  • Embedded platforms

Resources:

521 questions
0
votes
1 answer

Couchbase Lite access failed in react-native

I followed the steps on https://gist.github.com/jchris/3c32524577deff3d69aa I also posted my details step on the comment of the above link but I can not use "http://lite.couchbase./mydb/" to connect the local couchbase lite in react native any tips…
user1521398
  • 523
  • 1
  • 4
  • 7
0
votes
2 answers

Android Couchbase SyncGateway Cookie

salam i do this for enable cookie in android project, but in sync-gateway log return : 401 login required session_id("6e2b5106712c0aa3e0048c5b724b302df63d5fbf") is valid for 20 year couchbase server is in another local pc(192.168.137.137) try…
sadegh
  • 33
  • 6
0
votes
1 answer

Setting up PouchDB to Sync Gateway Walrus replication

I'm having a hard time setting up the replication between PouchDB and Sync Gateway. I tried to follow Couchbase's blog post, but I wasn't successfull, either. I'm building an Ionic application with angular-pouchdb and ng-pouchdb. Here's what I got…
0
votes
2 answers

How to mock a Couchbase Lite database

I have created a service layer which uses a DAO to get Couchbase Document objects and turn them in to POJO's I'd like to write a unit test for this method. public List findAll() throws CouchbaseLiteException { List docList =…
PDStat
  • 5,513
  • 10
  • 51
  • 86
0
votes
1 answer

Couchbase Sync Gateway

I am learning about couchbase. It's my first experience with NoSQL databases. In the case of a central server and many users with mobile devices. I want every user on your database has different data. I have doubts about the sync. To synchronize,…
user60108
  • 3,270
  • 2
  • 27
  • 43
0
votes
2 answers

Couchbaselite-Exception: Bad or missing JSON

I try to save properties in a Couchbase-document in Android. The properties hold a JSONArray with several JSONObjects. When I do document.putproperties(myproperties) a couchbaseliteexception with state 400 and the message "bad or missing json" is…
e_card
  • 119
  • 2
  • 10
0
votes
0 answers

CBLQueryEnumerator count returns nil for first time, second time works correct

when I launch App for first time (App is not installed perviously) on simulator, the instance of CBLQueryEnumerator count returns nil. I found it by placing breakpoints and executing po enumeratorResult but the enumerator object seems to be…
Nasir
  • 1,617
  • 2
  • 19
  • 34
0
votes
1 answer

sync existing oracle data base with Couchbase server

We hope to implement Couch base Mobile for our mobile application to add the offline support. Is it possible to sync our existing oracle data base with Couch base server. Our mobile application developed using xamarin and it is a xamarin form…
0
votes
0 answers

Couchdb Update/Replace replication filter

Is there any way of update/replace the filter of a pull replication? I'm stopping the replication, setting the new filter and start the replication. I've tried with restart too... BTW, i'm purging the documents that i don't need before changing the…
VeYroN
  • 760
  • 9
  • 19
0
votes
0 answers

Couch base lite Index out of range

I am trying to add/update a couch base lite db fetching data from a remote server as batches But I get the following error when try to add the data to the DB, I don't get it in the first iteration. at…
jereesh thomas
  • 113
  • 1
  • 13
0
votes
1 answer

Schema vs Schemaless DBMS

I am using Couchbase Lite database for project which is schemaless as I know, and I am very happy with that one because it solves my issues, but it raise me one question related with primary key contraints in NoSQL (Document Database). As we all…
Nasir
  • 1,617
  • 2
  • 19
  • 34
0
votes
0 answers

Couch Lite Error accessing document

I want to use couch db lite for an application which I am developing targeting windows using .NET I have installed couch lite version 1.1.0.1 using nuget. I am facing multiple issues , 1. After I save a document when I tried to read it I am getting…
jereesh thomas
  • 113
  • 1
  • 13
0
votes
0 answers

Loading only a subset of my data when querying Couchbase?

I am using Couchbase as a nosql database solution for my android app, but I have been having problems loading my data. My app features forms that users can fill out and then view a list of all the forms they've filled out and submitted so they can…
Jamie H
  • 1
  • 1
0
votes
1 answer

update textview from couchdb using changelistener android

I am trying to get real time changes on a document using the changelistener, however i have to refresh tha mobile app to see the change. Here is my gist https://gist.github.com/mikekaraa/89416ea8b074c71d7153 Please help me out if you have a solution
0
votes
1 answer

better explain couchbase lite map function rules and common mistakes

I am new to couchbase and I am trying to implement couchbase lite in one of my Android applications. What i am struggling with in particular is the concept of views and the rules for the map function as stated in the docs. In the database the app…
Macs
  • 197
  • 2
  • 15