Thanks, that makes sense, I do have observers running, and they are sending messages across the JS/native border in a React Native app, which is notoriously expensive. I'll take a look.
On 2 January 2018 at 22:47, Jens Alfke <[email protected]> wrote: > > > On Jan 2, 2018, at 1:14 PM, Adam Wilson <[email protected]> wrote: > > Good to know. The issue I have is that the UI is getting blocked during > very large replications (iOS). 30,000 documents each with a small binary > attachment. The UI freezes/slows even on the simulator. Is there a way > around this? Can the replication run on a lower priority thread? > > > The problem is probably that you have database observers registered that > are firing for every document received, and the observers are doing > something expensive enough to cause trouble. Try using Instruments to > profile the app. > > —Jens > > Jens Alfke — Mobile Architect — Couchbase, Inc. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Couchbase Mobile" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/mobile-couchbase/0MikI5KM9g4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/mobile-couchbase/E7D9D692-CF38-460F-9C3C- > B94404DBF430%40couchbase.com > <https://groups.google.com/d/msgid/mobile-couchbase/E7D9D692-CF38-460F-9C3C-B94404DBF430%40couchbase.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CABxX_H%2BLZqcAUPfPP5iVjnhThOfmcFsn3HkKnrghyrpb_QaVNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
