• 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: Core Data capabilities questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data capabilities questions


  • Subject: Re: Core Data capabilities questions
  • From: Rick Mann <email@hidden>
  • Date: Sun, 21 Jun 2009 17:50:38 -0700


On Jun 21, 2009, at 14:22:00, mmalc Crawford wrote:


On Jun 21, 2009, at 2:04 PM, Kyle Sluder wrote:

Is it possible (or does Core Data automatically do this) for attributes that
aren't accessed to not actually load? For example, my entities have a
"description" attributes that is rarely accessed. Will Core Data defer
loading the data for that attribute until it's actually requested?

No. The behavior you're describing is known as "faulting." Core Data
only faults objects, not attributes.


This is not the case with iPhone OS -- see NSFetchRequest's setPropertiesToFetch:

<http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSFetchRequest_Class/NSFetchRequest.html#//apple_ref/occ/instm/NSFetchRequest/setPropertiesToFetch: >

You can specify a subset of properties to fetch in the initial request. If you request others at a later stage, the remainder of the object's data will be faulted in.

That is exactly what I'm looking for, 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


  • Follow-Ups:
    • Re: Core Data capabilities questions
      • From: Rick Mann <email@hidden>
References: 
 >Core Data capabilities questions (From: Rick Mann <email@hidden>)
 >Re: Core Data capabilities questions (From: Kyle Sluder <email@hidden>)
 >Re: Core Data capabilities questions (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: Show the dock icon's context menu:
  • Next by Date: Core Data Fetching Limitations?
  • Previous by thread: Re: Core Data capabilities questions
  • Next by thread: Re: Core Data capabilities questions
  • Index(es):
    • Date
    • Thread