• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coredata performance problem : massive insertion produces error in allocate region
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Coredata performance problem : massive insertion produces error in allocate region (From: "Kubernan At 10191 Tec." <email@hidden>)

  • Prev by Date: Re: Core Data Validation and -[NSCFNumber length]: selector not recognized
  • Next by Date: Re: Reloading a window from NIB
  • Previous by thread: [solved] Re: Coredata performance problem : massive insertion produces error in allocate region
  • Next by thread: Getting NSNumbers (or C scalars) from bytes
  • Index(es):
    • Date
    • Thread