• 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: CoreData pagination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData pagination


  • Subject: Re: CoreData pagination
  • From: Jim Correia <email@hidden>
  • Date: Mon, 23 Jun 2008 20:31:07 -0400

On Jun 23, 2008, at 8:11 PM, Ian wrote:

I know this has been asked before... I've been searching and searching and RTFMing so I've seen the paper-trail of askees over the years...

Anyway, is there any way to query CoreData in chunks? I have a very large CoreData SQl store (>1 million) of managed objects and it's taking for ever (well, tens of minutes) to load it all in, never mind to search through it all.

That sounds like 2 separate problems. You should be able to specify a fetch request such that the data is searched/filtered in the database; you'll only have to pay for loading the results.


Also, unless your working set is so large that you are paging, breaking the work into chunks is may not affect positively affect the aggregate time required. (But will keep the high water mark for resource usage down.)

So, my question is... does any bright soul have any light to shed, any experiences to share, etc etc, with manipulating very large data sets in CoreData?

The way I deal with this on 10.5 is to use request that the fetch request return object IDs instead of fully realized objects, then fault them in in batches.


Jim
_______________________________________________

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: 
 >CoteData pagination (From: Ian <email@hidden>)

  • Prev by Date: CoreData pagination [was: CoteData pagination]
  • Next by Date: Re: Cocoa Text System: How to determine the caret position?
  • Previous by thread: CoreData pagination [was: CoteData pagination]
  • Next by thread: Re: CoreData pagination
  • Index(es):
    • Date
    • Thread