@richard wrote:
Hi,
I am using Objective-C Couchbase Lite 2.6.0 Community in a Cordova application and I am experiencing an issue with the pull replication.
I have 2 different app bundles which are the same, except for the amount of data. A dev app that has ~1 million documents and is 1.3GB and a staging app that has ~5 million documents and is 4.3GB.
The dev app reads about 1GB before pulling documents, whereas the staging app reads 40GB before pulling documents. Reading 40GB takes about 10 minutes and I’m not sure why it needs to read that much every time the replication starts.This wasn’t an issue in 2.5.3, the replication would start straight away. 2.5.3 did have a different issue where the memory would fill with all the documents it was pulling.
I’ve tried turning continuous off, using push and pull rather than just pull. Push on its own works fine.
This also occurs when offline.(void)startReplication:(CDVInvokedUrlCommand*)urlCommand{ NSDictionary *json = [[urlCommand arguments] objectAtIndex:0]; NSURL *url = [NSURL URLWithString:json[@"source"]]; CBLURLEndpoint *target = [[CBLURLEndpoint alloc] initWithURL: url]; CBLReplicatorConfiguration *config = [[CBLReplicatorConfiguration alloc] initWithDatabase:database target:target]; config.replicatorType = kCBLReplicatorTypePull; config.authenticator = [[CBLBasicAuthenticator alloc] initWithUsername:json[@"username"] password:json[@"password"]]; config.continuous = true; CBLReplicator* replicator = [[CBLReplicator alloc] initWithConfig:config]; [replicator addChangeListener:^(CBLReplicatorChange *change) { [self replicationNotification: change: @"replicationStatus"]; }]; [replicator start]; CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; [self.commandDelegate sendPluginResult:pluginResult callbackId:urlCommand.callbackId]; }
iPad Pro (2nd generation)
iOS 13.2.2
Posts: 1
Participants: 1