• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Efficiently exporting CoreData objects as CSV
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Efficiently exporting CoreData objects as CSV (From: Devraj Mukherjee <email@hidden>)

  • Prev by Date: How did gcc handle synthesized atomic vs custom nonatomic setter/getter?
  • Next by Date: Re: How did gcc handle synthesized atomic vs custom nonatomic setter/getter?
  • Previous by thread: Re: Efficiently exporting CoreData objects as CSV
  • Next by thread: NSDictionary setValue KVO
  • Index(es):
    • Date
    • Thread