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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mark% 40bluecollarsoftware.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to