Re: EOSharedEditingContext Useful for Read-Mostly?
Re: EOSharedEditingContext Useful for Read-Mostly?
- Subject: Re: EOSharedEditingContext Useful for Read-Mostly?
- From: Hunter Hillegas <email@hidden>
- Date: Mon, 26 Jul 2004 16:25:23 -0700
The app is currently using the default session context.
There are about 50 hotels. When using the session context, are they
refetched each time or does EOF share the cache between session editing
contexts? I am trying to minimize DB roundtrips.
On Jul 26, 2004, at 4:20 PM, Mark Edwards wrote:
You should just use the Session's default editing context:
session().defaultEditingContext()
For such a simple application, you may also find WODisplayGroup useful
-
especially for display.
Have a read of the documentation - especially Web Applications and
Enterprise Objects:
http://developer.apple.com/documentation/WebObjects/Development-
date.htm
l
Regards,
Mark
-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Hunter
Hillegas
Sent: Tuesday, 27 July 2004 9:06 AM
To: WebObjects (Group)
Subject: EOSharedEditingContext Useful for Read-Mostly?
I have an app with a relation as follows:
Hotel<->>HotelComment
Users NEVER modify a Hotel EO. A cron job does run that modifies the
Hotels, once per night.
HotelComments are created and editing by users regularly.
From the JavaDoc, it sounds like EOSharedEditingContext is not
appropriate for my Hotel EOs but in the interest of doing things
correctly/efficiently, I wanted to ask. The app's main use is read-only
Hotel EO display... About 80% of the users just read.
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.