Re: Need help figuring out poor Core Data performance
Re: Need help figuring out poor Core Data performance
- Subject: Re: Need help figuring out poor Core Data performance
- From: "Sean McBride" <email@hidden>
- Date: Tue, 26 Jan 2010 18:23:03 -0500
- Organization: Rogue Research Inc.
On 1/26/10 12:15 PM, Eyal Redler said:
>I'm working on a NSPersistentDocument based application. My data model
>is quite simple, the main entity contains a few strings, ints and
>dates and there is an array (one to many relationship) of another
>simple entity.
>The document window contains an NSTableView that displays all the main
>entities (using an NSArrayController)
>Everything seems to be working ok except that when I open a large
>document (20k records) for the first time in a session (after a
>restart), it takes a few minutes of spinning wheel for the data to
>show. If I close the document and then re-open I usually get an
>instant response. The format is sqlite.
>Following is an Activity Monitor sample taken during this long
>process. I also tried to monitor this using Instruments and saw
>nothing interesting - only one fetch.
>I'm really stuck with this, I would appreciate any ideas or pointers...
Instrument.app has features specifically for Core Data-related
performance measurements. I've never used them seriously, so can't
really comment further. Also, note that the Instruments docs have not
been updated for 10.6 (still! :() so that complicates learning.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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