Re: Core Data dog-slow when using first time after boot
Re: Core Data dog-slow when using first time after boot
- Subject: Re: Core Data dog-slow when using first time after boot
- From: "I. Savant" <email@hidden>
- Date: Wed, 19 Aug 2009 13:18:46 -0400
On Aug 19, 2009, at 1:14 PM, Ruotger Skupin wrote:
I debugged it with some Snow Leopard magic and found out, that
firing faults is very slow the first time after boot. When I use -
[NSArray filteredArrayUsingPredicate:] the fault firing is killing me.
So I recoded it to fetch everything upfront with [fetchRequest
setReturnsObjectsAsFaults:NO]; and the fetching of 5000 objects
still takes more than 15 seconds. On second launch that's about 3
seconds. This seems to be slow.
Hmm ... time to hit the books if you haven't already:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468
Have you tried anything suggested there?
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden