Re: Efficiently exporting CoreData objects as CSV
Re: Efficiently exporting CoreData objects as CSV
- Subject: Re: Efficiently exporting CoreData objects as CSV
- From: Quincey Morris <email@hidden>
- Date: Sun, 10 Oct 2010 00:58:21 -0700
On Oct 10, 2010, at 00:26, Devraj Mukherjee wrote:
> I am working on adding an "export data" option to my application which
> uses Core Data. Preferably export it to CSV so the user can use a
> spreadsheet program to work with data.
>
> The data sets I am dealing with can be quite large, and am wondering
> if fetching all the records from my Core Data model, looping over them
> and writing out a CSV file is the most efficient way of exporting a
> Core Data result set to CSV?
a. What does "efficient" mean? Without a measure of efficiency, you won't know if one approach is better than another.
b. What alternative ways of exporting are you considering, other than fetching all the records and looping over them?
Probably the place to start your research is here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468-SW9
Although this page may seem brief, it's quite deep, covers a lot of ground, and mentions a large number of techniques that are useful for managing performance.
_______________________________________________
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