FROM : Jim Correia
DATE : Fri Apr 29 22:41:52 2005
On Apr 29, 2005, at 2:37 PM, mmalcolm crawford wrote:
> For example, if a Person entity should have a 'photo' attribute,
> then create a Photo entity with just a single attribute -- the data
> -- and if you care a relationship back to the Person (typically
> modeling relationships in both directions is a Good Thing). Then
> create a relationship from the Person to the Photo entity. This
> will mean that photo data is only loaded from the persistent store
> if you actually use it.
Is this true in general (or at least for SQLite stores)?
Relationships are loaded on demand, but attributes are loaded when
the object is? Is there any situation where attributes will be lazily
loaded, or is the concept of faulting only for entities? I'm thinking
of an example of an object that has
ObjectEntity
name
date
comments
It is being displayed in a table view, but the table view only has
columns for name and date, for example.
Jim
DATE : Fri Apr 29 22:41:52 2005
On Apr 29, 2005, at 2:37 PM, mmalcolm crawford wrote:
> For example, if a Person entity should have a 'photo' attribute,
> then create a Photo entity with just a single attribute -- the data
> -- and if you care a relationship back to the Person (typically
> modeling relationships in both directions is a Good Thing). Then
> create a relationship from the Person to the Photo entity. This
> will mean that photo data is only loaded from the persistent store
> if you actually use it.
Is this true in general (or at least for SQLite stores)?
Relationships are loaded on demand, but attributes are loaded when
the object is? Is there any situation where attributes will be lazily
loaded, or is the concept of faulting only for entities? I'm thinking
of an example of an object that has
ObjectEntity
name
date
comments
It is being displayed in a table view, but the table view only has
columns for name and date, for example.
Jim
| Related mails | Author | Date |
|---|---|---|
| Marc Blatt | Apr 29, 20:24 | |
| mmalcolm crawford | Apr 29, 20:37 | |
| Jim Correia | Apr 29, 22:41 | |
| mmalcolm crawford | Apr 29, 23:16 | |
| Scott Ellsworth | Apr 29, 23:32 | |
| mmalcolm crawford | Apr 30, 01:25 | |
| Scott Ellsworth | Apr 30, 02:14 | |
| Jim Correia | May 10, 19:11 |






Cocoa mail archive

