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 with core data sync does not support for model versions

I am trying to sync the database (using core data) using CBLIncrementalStore. In managedObjectModel i am adding updateManagedObjectModel method. My data model has 7 versions, every time app is started i get crash on line entity.properties =…
Prerna chavan
  • 3,179
  • 7
  • 35
  • 77
0
votes
0 answers

Couchbase store only one revision

Is it possible to store only one revision of each document in Couchbase so that it doesn't inflate after each update using set? This question is interesting in context of Couchbase Lite too.
Nik
  • 9,063
  • 7
  • 66
  • 81
0
votes
1 answer

CBLQuery map/reduce for arrays property

I have an existing json structure like this stored in one document. How can I use CBLQuery map/reduce for the events array? { "_id": "subject:6688", "_rev": "29-d3aad012fc362578e8a9b652918f419d", "subjectId": 6688, …
angelokh
  • 9,426
  • 9
  • 69
  • 139
0
votes
1 answer

Couchbase-lite not setup in android with eclipse

I am using this http://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/#building-your-first-app-with-eclipse to setup couchbase with android android application in eclipse. But I get following error, How to resolve them? [2014-06-14…
kiran boghra
  • 3,662
  • 2
  • 18
  • 23
0
votes
1 answer

where to find the user creation code in couchbase couchchat code

I have the couchbase couchchat sample app. I have everything working. I can add a user. I can use the admin port of the sync gateway and see the user. Where in the code can I see an example of the call to the sync gateway to create the _user entry?
joels
  • 7,249
  • 11
  • 53
  • 94
0
votes
2 answers

How to get the latest document in couchbase bucket?

I have a activity bucket in my couchbase-db and I need to retrieve the latest document for different types, My initial approach was this: Document Format : [ id , { val.time ,val.type, val.load } ] And then I wrote different views to Map a specific…
user1470618
  • 147
  • 2
  • 11
0
votes
1 answer

Sync with Couchbase Lite through Couchbase Sync Gateway doesn’t see any documents (Channel issue?)

I’m trying to sync a Couchbase bucket from the server to an iOS app using the Couchbase Sync Gateway and Couchbase Lite for iOS. So far I’m working with the "beer-sample" example bucket that comes with Couchbase. On my Ubuntu 12.04 LTS VM, the…
0
votes
3 answers

Syncing CouchBase Lite data via iCloud

I'm considering using CouchBase Lite instead of CoreData for my OS X and iOS apps. However, I need to be sure whether I can sync the data between OS X and iOS apps via iCloud in case Couch Base Lite is used. CoreData syncing is possible via…
Chiron
  • 20,081
  • 17
  • 81
  • 133
0
votes
2 answers

How to attach single or multiple attachments to CouchbaseLite document - Android?

I want to attach files to CouchbaseLite document. How can I do so? I did not find any code sample on official CBLite website for this - CBLite code Sample. I am still stuck how to accomplish it. One way to do this in code is: Document document =…
Master
  • 2,945
  • 5
  • 34
  • 65
0
votes
1 answer

CBLite Android - Get values in second level

Using CBLite Android, and storing docs (similar to Android Grocery Sync example) like this: { "check" : true, "created_at" : "2014-02-25T10:16:46.026Z", "text" : "Soap", "prices":[ { "date" : "2014-02-25" , "value" : 12 } …
user3388293
  • 25
  • 1
  • 4
0
votes
1 answer

Querying CouchBaseLite Views?

I am querying CouchBaseLite view but I am getting this exception every time I query it. It is not returning the result. detailMessage: last sequence < 0(-1) View: com.couchbase.lite.View viewItemsByDate = database.getView(String.format("%s/%s",…
Master
  • 2,945
  • 5
  • 34
  • 65
0
votes
1 answer

Couchbaselite save operation

Is saving a CBLModel an expensive operation. How many seconds/milliseconds will it take to save a CBLModel to the database? CBLModel *model = [database modelForDocument:documentID]; NSError *error; [model save:&error];
Anonymous
  • 219
  • 2
  • 6
0
votes
2 answers

Couchbase Lite stops syncing when an app resumes from background

Trying out the sample couchbase lite sample app, it works great until I put the app in background by hitting the home button. When I return to the app and it enters the foreground, the sync stops working and the nsnotifications stop firing. What's…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
2 answers

Can I do CRUD operations with Couchbase Lite through CouchbaseClient

We are currently using Couchbase in a product (not released) but we are thinking of using Couchbase Lite in our test environment. However can we use com.couchbase.client.CouchbaseClient to do CRUD operations on Couchbase Lite? I have googled it and…
Codeape
  • 288
  • 3
  • 14
-1
votes
1 answer

Couchbase Lite - use coalesce / ifNullOrMissing in order by clause

I have documents stored in a couchbase lite database. I use the query builder to request these documents in Java. I would like to to order the retrieved documents given two properties: if one is missing, I'd like to use the value of another for the…
Eria
  • 2,653
  • 6
  • 29
  • 56
1 2 3
34
35