If we use a pre-built couchbase lite database (SQLite3) as described in the documentation:
// catalog.zip should unzip in the root folder as a CBL database (i.e catalog.cblite2) Manager manager = new Manager(new AndroidContext(getApplicationContext()), Manager.DEFAULT_OPTIONS); Database database = manager.getExistingDatabase("catalog"); if (database == null) { try { ZipUtils.unzip(getAssets().open("catalog.zip"), manager.getContext() .getFilesDir()); } catch (IOException e) { e.printStackTrace(); } database = manager.getExistingDatabase("catalog"); } The pre-built database as been replicated pull from a localhost server. later on, on the device, we try to replicate this pre-built database from the same master (from a different public URL). This ends up with CouchBase lite checking all the database content with the remote database for nothing (As the content of the databases are the same) and loose at a lot of time and network bandwidth! Seems that this is due the replicationID for building the pre-built database is different from the one used to replicate it on the devices as the remote databases URLs are different (One local and one public) So we used the same URLs and this work perfectly. Unfortunately, if two different devices are using the pre-built database, again we end up with CouchBase lite checking all the documents for nothing! This can be explained by the fact both devices are using the same replicationID. So we have to change the prebuilt database ID of each device and regenerate checkpoints documents on the server and local database (_local/<replicationID>) with the correct sequence number. How can we do that? Thanks -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/edb31f28-25cd-4401-8c7b-4220729bdaf8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.