<https://lh3.googleusercontent.com/-0q4yqkMFZeU/Vadk2zSRvNI/AAAAAAAAAKE/vfGW0pjpIDo/s1600/Screenshot%2B2015-07-16%2B09.43.26.png>
Il giorno giovedì 16 luglio 2015 09:59:27 UTC+2, Daniel Sonny Agliardi ha scritto: > > Thanks you for precise replay. > > I have recreate the situation and in the screen you can see what > operations are done deeper. > > This "issue" happens when i do about 30 UPDATE queries in a for. > > > > Il giorno mercoledì 15 luglio 2015 18:27:17 UTC+2, Jens Alfke ha scritto: >> >> >> On Jul 15, 2015, at 6:48 AM, Daniel Sonny Agliardi <[email protected]> >> wrote: >> >> I was analyzing performances of my app with Instruments and i noticed >> that a method needs a lot time to be completed, this method is >> *[CBLDatabase(Internal) >> notifyChanges:]* (see the attached photo below). >> >> In that profile, it would have been interesting to drill down into >> -[NSNotificationCenter postNotificationName:…], which is where 97% of the >> time is spent. The actual notification observer methods are called during >> this, and it’s probably one or more of those observers that’s consuming the >> CPU. Those could be observers in your own code, which would indicate that >> your code should be optimized. >> >> If you profile this again and need help interpreting it, save the profile >> and email me the file and I’ll take a look. >> >> There is a way to disable it? In particular because i assume that method >> is used for live queries feature and i don't currently use it. >> >> No, it can’t be disabled. It’s used for a lot of other things too, like >> >> - Posting CBLDatabaseChanged notifications >> - Posting CBLDocumentChanged notifications >> - Updating CBLModel objects’ properties >> - Notifying a continuous push replication that there are new >> revisions to push >> >> >> —Jens >> >> >> >> >> -- 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/2778fded-4bed-478e-a1f2-c89a61e52fbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
