Re: Coredata performance problem : massive insertion produces error in allocate region
Re: Coredata performance problem : massive insertion produces error in allocate region
- Subject: Re: Coredata performance problem : massive insertion produces error in allocate region
- From: "Philip Q" <email@hidden>
- Date: Mon, 12 Mar 2007 16:24:41 +1300
On 11/03/07, Kubernan At 10191 Tec. <email@hidden> wrote:
if (countOfInsertedLines > SYNC_CONTEXT_AFTER_MAX_LINE_INSERTED)
{
countOfInsertedLines = 0;
NSError *error;
[[[NSApp delegate] managedObjectContext] save:&error];
}
Another suggestion which might also help is to do this as a single
call at the end of all the insertions -- so that Core Data's not
trying to persist to disk 60,000 times for one item, but only once for
60,000 items.
-Phil
_______________________________________________
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