Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
- Subject: Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 15 Jul 2005 02:50:07 -0700
On Jul 15, 2005, at 2:36 AM, Javigator wrote:
Tearing my code appart seems to point in a direction that the
NSArrayController/bound NSTableView seems to be some kind of
performance hog. Because when executing the object creation while
pointing the NSArrayController (and bound table) to another entry
in the master/detail structure the objects are created in less than
1 second (performance like I expected).
But when the currently updating master/detail entities are active
in the controller and displaying in the table, it takes awefully
long (>40 sec. for 600 obj.).
I would suggest switching off automaticallyPreparesContent for the
duration of the insertion.
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSObjectController.html#//
apple_ref/doc/uid/20002044-BBCEJEDI>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden