Dears,
Your help was great ! So I have to :
- create one ordinary editing context per concurrent reader in my application. I may let application deal or not with caching
- create one CooperatingEditingContext per contributor.
Many thank's for your help,
Jérémy
Chuck Hill <[EMAIL PROTECTED]> a écrit sur 16/02/2006 19:56:04 :
> Hi Jeremy,
>
>
> On Feb 16, 2006, at 10:34 AM, [EMAIL PROTECTED] wrote:
> >
> > Hi Chuck,
> >
> > "> Keep in mind that while there is a separate EO object in each EC,
> > > that the _data_ is stored only _once_ in the snapshot. The EO just"
> >
> > Do you mean that if 3 users fetch the same enterprise object
> > without changing anything, the object will only be created once (in
> > the "snapshot") ?
>
> No. An object will be created in each EC, but it will have very
> little _data_ in it. All the EOs that represent one physical object
> share the data for that object in the snapshot until one of the
> modifies it. At that point, that EO has the modified (but not yet
> saved) data in it. What I am getting at is that multiple EO objects
> representing the same physical object might be less memory intensive
> than you are imagining.
>
>
> > If so, I don't need to use any shared editing context... that's
> > clear. But that's strange ?? When the object is deleted it means
> > that it's deleted in each EC
>
> Yes, once you call saveChanges().
>
>
> > and when I modify the object, a second one is created
>
> No, it is the same object. But an object is created to hold the
> changed, unsaved value (e.g. a String object or an Integer object etc.).
>
>
> > and when I save the changes, all the objects in all the EC are
> > changed too ?
> >
> Yes, updated / changed depending on how you want to name it.
>
> Chuck
>
> --
> Coming in 2006 - an introduction to web applications using WebObjects
> and Xcode http://www.global-village.net/wointro
>
> 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/archive%40mail-archive.com
This email sent to [email protected]
