Re: Efficiently exporting CoreData objects as CSV
Re: Efficiently exporting CoreData objects as CSV
- Subject: Re: Efficiently exporting CoreData objects as CSV
- From: Dave DeLong <email@hidden>
- Date: Sun, 10 Oct 2010 08:26:15 -0600
NSFetchRequest has a setFetchBatchSize: method. I'd definitely start with that.
As for creating a CSV file, take a look at the CSV reader/writer I wrote: http://github.com/davedelong/CHCSVParser
HTH,
Dave
Sent from my iPhone
On Oct 10, 2010, at 1:26 AM, Devraj Mukherjee <email@hidden> wrote:
> Hi all,
>
> 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?
>
> I did Google around / Check the dev forums for discussions but didn't find much.
>
> Any thoughts / suggestions / experiences are welcome.
>
> Thanks.
> _______________________________________________
>
> 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
_______________________________________________
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