Strange Problem with Core Data on PPC
Strange Problem with Core Data on PPC
- Subject: Strange Problem with Core Data on PPC
- From: August Hahn <email@hidden>
- Date: Tue, 17 Apr 2007 13:11:19 -0700
My app is universal and the PPC users are complaining about how slow
it is on their machines. I'm using Core Data so I used the debugging
line -com.apple.CoreData SQLDebug 1 to look at what the store was
doing, and I found on PPC that adding a store to the
persistentStoreCoordinator (via theDatabase = [psc
addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:
[NSURL fileURLWithPath:theDBFilePath] options:nil error:&error]; )
caused it to execute a fetch request for all the records in the
database, all 8400 of them, twice. Once during the call to
addPersistentStore and once in a place I can't seem to find.
This behavior does not occur when I run the same app on an Intel
iMac. It only happens on the PPC iMac. Something that takes me 0.25
seconds takes the user 50 seconds or more. I'd like to find out why
and fix it, but I can't seem to find anything about this on the web.
August
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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