Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1117

Syncing only recent data from server to couchbaselite

$
0
0

Hi, we have an application that has a lot of historical data for users. If they login we don’t want them having to sync down 100’s of MBs of data. To avoid this we would like to only sync the last couple weeks of data for documents that are time-sensitive, and then also sync docs that have no time-based component (like a user doc). In our current application we have Couchbase Lite 1.4.1 and Sync Gateway Community 1.3.1, so we use channels as the filter on our pull replicator to filter data in this way. This means some users have a channel list of 800 channels or more though, and I’m not sure if this can cause performance issues since we see sync gateway use a lot of CPU sometimes.

In couchbase lite 2.8 and sync gateway 2.8 is there a better way to filter synced data so we can still sync some documents based on timestamps and other documents regardless of time?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1117

Trending Articles