• 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: modeling NSManagedObject with large binary data attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modeling NSManagedObject with large binary data attribute


  • Subject: Re: modeling NSManagedObject with large binary data attribute
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 24 Oct 2005 12:38:53 -0700

On Oct 24, 2005, at 5:56 AM, Jesse Grosjean wrote:

I was under the impression that when an entity is fetched all of its attributes are also loaded at the time of this fetch, only it's relationships are left as faults and loaded on demand.

This is not quite the case. When instances of an entity are fetched, the instances themselves are faults until you access them, at which point their attributes are loaded and their relationships are faults.


For this reason I had been modeling this binary data attribute as a separate entity referenced by the original. This way I know that the binary data won't be loaded until it's explicitly accessed.

This is still a good way to approach the problem.

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: modeling NSManagedObject with large binary data attribute
      • From: Jesse Grosjean <email@hidden>
References: 
 >modeling NSManagedObject with large binary data attribute (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Strange behavior of stringWithFormat and accented characters
  • Next by Date: [ANN] Coalescing undo in Cocoa
  • Previous by thread: Re: modeling NSManagedObject with large binary data attribute
  • Next by thread: Re: modeling NSManagedObject with large binary data attribute
  • Index(es):
    • Date
    • Thread