Re: CoreData huge memory usage - is this right ?
Re: CoreData huge memory usage - is this right ?
- Subject: Re: CoreData huge memory usage - is this right ?
- From: Mike Abdullah <email@hidden>
- Date: Tue, 18 Dec 2007 11:11:01 +0000
On 18 Dec 2007, at 10:57, Martin Linklater wrote:
Perhaps if you'd post your import routine?
Of course... Here are the relevant parts of my code:
Main Controller:
{
NSManagedObjectContext *moc = [appDelegate managedObjectContext];
[moc setStalenessInterval:0.1];
[[moc undoManager] disableUndoRegistration];
[importer importFile:@"AgtOfferDetails.sql"
usingEntity:@"AgtOfferDetails" andFlags:0];
lots more import calls (around 100) etc.
[[moc undoManager] enableUndoRegistration];
}
The above code for the undo manager will probably not work as you're
expecting. Before the disableUndoRegistration and
enableUndoRegistration methods, you need to call [moc
processPendingChanges]
_______________________________________________
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