Re: [Core Data] Improve save performance ?
Re: [Core Data] Improve save performance ?
- Subject: Re: [Core Data] Improve save performance ?
- From: "Timothy J. Wood" <email@hidden>
- Date: Mon, 16 Jan 2006 10:20:31 -0800
On Jan 16, 2006, at 9:51 AM, mmalcolm crawford wrote:
Are you causing a large number of faults to fire (individually)?
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdFetching.html#//apple_ref/doc/uid/TP40002484-SW4>
The following information on the 'Troubleshooting' page should
really be copied on that performance page:
"""
With Mac OS X version 10.4.3 and later, you can use the user default
com.apple.CoreData.SQLDebug to log to stderr the actual SQL sent to
SQLite. (Note that user default names are case sensitive.) For
example, you can pass the following as an argument to the application:
-com.apple.CoreData.SQLDebug 1
Higher levels of debug numbers produce more information, although
this is likely to be of diminishing utility.
The information the output provides can be useful when debugging
performance problems—in particular it may tell you when Core Data is
performing a large number of small fetches (such as when firing
faults individually). Like file I/O, executing many small fetches is
expensive compared to executing a single large fetch. For examples of
how to correct this situation, see "Performance".
"""
-tim
_______________________________________________
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