Re: modeling NSManagedObject with large binary data attribute
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