@rahimrahman wrote:
We are utilizing prebuilt database so that we can spin up our mobile application a little bit faster. We created a user and assigned a single channel to authenticate and replicate our most common documents from sync-gateway. We compressed the cblite2 file and store it in S3 which will then get downloaded by our mobile app (running cblite 2.7), decompressed and copied. Our app on each device will have a different user with that same single channel assigned to the sync gateway user above plus a few other channels.
After copying the prebuilt database onto our mobile application, the app will attempt to synchronize other documents that weren’t included in the prebuilt database. So far, we are seeing the data being replicated taking much longer than if we had not used the prebuilt database. As an example, it would take us 40-50 minutes to replicate 1.07 million records to our mobile application. However when we utilize our prebuilt database (1.05 million documents), it would take no time to download and copy the prebuilt database, but then it would take 2.5 - 3 hours to synchronize the other documents (20,000 records).
I hope this is not expected behavior. Can you help us figure out how to remedy the issue?
Posts: 1
Participants: 1