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

Using Couchbase Lite to upload activity logs

I'm thinking about using Couchbase Lite's powerful sync capabilities to upload activity logs from clients to a CouchDB server. The client would just create log entries as documents in some DB that would replicate to the online DB. My concern is…
ThomasWeiss
  • 1,292
  • 16
  • 30
0
votes
3 answers

Converting Large

I'm trying to devise a way for multiple high-quality images to be stored via Couchbase-Lite (Android) by converting them to Base64 Strings and storing them in a Couchbase document without completely running out of memory. My current implementation…
0
votes
1 answer

Android: How can I share the contents of a Couchbase database between devices? (And/or how to export Couchbase to XML)

I want to be able to make a backup of the data in my application, and potentially share this backup between Android devices. I am using Couchbase. I have found many resources regarding exporting an SQLite database to XML, but none for Couchbase.…
Christina
  • 57
  • 2
  • 8
0
votes
2 answers

Use of a wildcard when querying a couchbase ios view containing two keys

How does one query a couchbase view that contains two keys; the first an NSNumber type (called created in the example below) and an NSString type (called username). CBLView* view = [database viewNamed:@"by_username"]; if (!view.mapBlock) { [view…
John Dunne
  • 387
  • 1
  • 6
  • 12
0
votes
1 answer

Couchbase Android: LiveQuery doesn't make a view to refresh when a document is updated

In my Android app I use Couchbase Mobile have a LiveQuery running that gives me a subset of my model. Sometimes I get an object from it and update it with document.putProperties(updatedProps). I've noticed that my query doesn't give another result,…
Serandel
  • 417
  • 5
  • 20
0
votes
1 answer

Add Json String to CouchBase Lite Android

I am a newbie in Couchbase Mobile , i am trying to add this json string like shown below in db but couldn't way to this . By adding i meant creating a document based out of this json and then add this document to db . { "array": [ 1, 2, …
Code_Life
  • 5,742
  • 4
  • 29
  • 49
0
votes
1 answer

Instruction on how to use POST PUT GET DELETE, Couchbase Lite on Cordova

I am trying to implement Couchbase Lite on my Cordova Project and need some help. How do I Test if the values submitted are correct, and how should I read the values? I need some proper documentation on how to use the…
Scratch.
  • 343
  • 1
  • 6
  • 16
0
votes
1 answer

Couchbase-Lite-PhoneGap: I get “Status 400 - Bad request” when I try to create _design document(view)

I've been dealing with Couchbase-Lite-PhoneGap-Plugin. I've try to create a design document in an Android emulator using REST API. But every time I get status: 400 - Bad request message and I cannot find my mistakes. My codes are the following; var…
efkan
  • 12,991
  • 6
  • 73
  • 106
0
votes
2 answers

Is there any example in Couchbase PhoneGap with REST API

There are some examples that were developed with Couchbase Lite PhoneGap plugin but there is no example with REST API and PhoneGap plugin. Can we use REST APIs with PhoneGap plugin in Couchbase?
efkan
  • 12,991
  • 6
  • 73
  • 106
0
votes
1 answer

409 http error in Couchbase lite in phonegap on iOS

I'm getting a 409 on PUT, POST and DELETE actions. I have successfully created a database and have PUT one document successfully ONCE. I have tried local and "normal" documents. I haven't spend any focus on revisions but think it has to do with…
Matthias Max
  • 595
  • 1
  • 7
  • 20
0
votes
0 answers

Can I reach to Couchbase Lite database using Sails.js on a same device

I have a thought regarding using Sails.js and Couchbase Lite(CouchDB) on same Cordova(PhoneGap) project and device. I think, a Sails application is dependent with a Node.js that provides to reach a database. If I try to reach a mobile database like…
efkan
  • 12,991
  • 6
  • 73
  • 106
0
votes
2 answers

Couchbase lite Documents Save Format

We are creating the Documents on couch base lite i need to know the format of document which stores in database to sync to server on mobile devices for example. We create simple document: com.couchbase.lite.Document document =…
M.Raheel
  • 165
  • 7
0
votes
0 answers

Swift Couchbase Lite CBLManager dispatch_queue

i would like to execute my couchbase operations on a dedicated dispatch queue within Swift. I adapted the code from this couchbase-example plus adding function calls referencing to self. within in the dispatch closure. At this point my application…
robbiebubble
  • 161
  • 9
0
votes
1 answer

Implementing NSFetchedResultsController for couch base in iOS

If we are using coredata in iOS application, it provides fetch result view controller that will allow me to update the collection view and table view without sacrificing more memory by pre-fetching the data. Couch base framework for iOS has…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
0 answers

Swift Undefined architecture x86_64 in Xcode 6 Beta 5

Steps to reproduce: Create a new single page application in swift using Xcode 6 beta 5 Add TouchDB.framework and CouchCocoa.framework to project by following this steps Add a new swift file to project and type Create a bridging header file and…
Robin
  • 21
  • 1
  • 1