Re: Get fetched raw row into an editing context
Re: Get fetched raw row into an editing context
- Subject: Re: Get fetched raw row into an editing context
- From: Steven Mark McCraw <email@hidden>
- Date: Wed, 25 Apr 2007 12:54:57 -0400
Hi Dana,
I've had the exact same experience. I always just do a fetch. I
find it's still very much worth it and cuts down a ton on memory and
overhead if you're in the paradigm of showing overviews of a lot of
items (especially if the hitlist is composed of attributes from
several joined tables) to fetch raw rows and only instantiate as an
EO if the user clicks to see detail, etc. One extra fetch (plus
faults) doesn't seem to be that big of a deal performance-wise, and
compared to grabbing everything as EOs, it's been a clear win for me.
Mark
On Apr 25, 2007, at 12:48 PM, Chuck Hill wrote:
On Apr 25, 2007, at 8:54 AM, Dana Kashubeck wrote:
Maybe there is an obvious answer, but if there is I'm missing it.
I am fetching raw rows from the database at the adaptor level. I
have no problem converting those raw rows into EOs, but I cannot
for the life of me figure out how to get those EOs into an editing
context without performing another fetch. Is there a way to get
an editing context to register an EO that represents an existing
row in the database fetched via the adaptor channel?
There probably is a way to register the snapshot yourself, but it
won't be overly easy. EOF has no way of knowing if a raw row has
all the needed data so it always goes back to the database when a
raw row is converted into an EO. I found this surprising too, but
that is the way it is.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bluecollarsoftware.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden