Location of cblite - preload database


#1

Hello there,

How do we preload cblite database with necessary data using corodova/android implementation? Could you direct me to few links.

Also is there an easier way to perform compaction (Deleting unnecessary revisions of documents from CBLite)

Is there a way to delete documents from sync gateway or should this happen from cblite?


#2

Loading a pre-built must be done natively (see https://developer.couchbase.com/documentation/mobile/current/training/develop/create-database/index.html#using-the-pre-built-database). Once the pre-built database is in the right place you can perform operations on it through the REST API. So you will need to extend the phonegap plugin with a method to load the pre-built database.