Re: EOSharedEditingContext Useful for Read-Mostly?
Re: EOSharedEditingContext Useful for Read-Mostly?
- Subject: Re: EOSharedEditingContext Useful for Read-Mostly?
- From: Marek Wawrzyczny <email@hidden>
- Date: Tue, 27 Jul 2004 10:22:30 +1000
It shares them. As far as my understanding goes, all objects are
fetched into the EODatabaseContext, your own editing contexts, whether
they are session, shared peer or nested ECs all are "children" of the
Db EC. Each time you make changes to an EO, change notification
messages are sent up to the DB EC and then down to all the children.
On 27/07/2004, at 09:25, Hunter Hillegas wrote:
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.
Marek Wawrzyczny
software engineer
-------------------------->
ish group pty ltd
http://www.ish.com.au
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400 fax +61 2 9660 7400
_______________________________________________
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.