We are facing a serious issue where the pull replicator on our app takes up to 30 minutes to finish.
- Our app is used to accept the online order from an eCommerce website.
- The number of orders daily can reach up to thousands.
- We have a function called ‘Make my app faster’ in the app which will purge old order documents that are older than 1 month.
The issue here is when the user log-out and log-in again. Since the pull replicator can only be filtered by channel it will pull all those documents since the beginning of time back to the device and it can take up to 30 minutes to complete.
We have tried to change the channel of those old documents from ‘order’ to ‘order_archive’ but still, those documents are being pulled to the app, although the body is empty they are still being pulled.
Is there any way for couchbase lite to really exclude those documents from being pulled at all?