Re: Strange Problem with Core Data on PPC
Re: Strange Problem with Core Data on PPC
- Subject: Re: Strange Problem with Core Data on PPC
- From: mmalc crawford <email@hidden>
- Date: Tue, 17 Apr 2007 15:08:08 -0700
On Apr 17, 2007, at 1:11 PM, August Hahn wrote:
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.
BT suggests:
It is possible that you've set the staleness interval to be really
small, so by the time the application has finished executing a fetch
request the rows are already stale (so Core Data refaults them, even
though they were just fetched)?
This would only reproduce on machines slow enough to exceed the
staleness interval -- so it may not be a PPC v.s. Intel issue so much
as a slow vs. fast machine issue.
mmalc
_______________________________________________
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