Re: When (not) to use session().defaultEditingContext()
Re: When (not) to use session().defaultEditingContext()
- Subject: Re: When (not) to use session().defaultEditingContext()
- From: Ben Ketteridge <email@hidden>
- Date: Fri, 29 Oct 2004 21:14:32 +0100
On Fri, 29 Oct 2004 20:01:38 +0100, Geoff Hopson <email@hidden> wrote:
> I'm not so sure that's a good thing to do. I recall that if you ask an
> EO for it's editing context, a general message is sent out to the
> object store coordinator saying "Does any one of the editing contexts
> under your control have me as an object instance in their object
> graph?". The object store coordinator then messages each of the
> ECs it knows about, asking if they hold the specified instance.
>
> If you have a system with 1000s of sessions/editing contexts, that's
> a lot of messages.
>
> It may have changed in more recent versions of WO. And if you have
> a low usage system, you probably won't notice.
This was one of the big changes in WO 5.2 - the most useful for my
purposes. The EOEnterpriseObject now has a hard reference to the
EOEditingContext within which it resides, and the EOEditingContext has
a list of weak references to it's objects. However, the
insertedObjects, updatedObjects and deletedObjects arrays remain
arrays of EOEnterpriseObjects, not weak references.
Ben
--
| Ben Ketteridge email@hidden, aka Gremlin |
| It is by caffeine alone that I set my mind in motion. |
| It is by the coffee that the thoughts acquire speed, |
| the lips acquire stains, the stains become a warning. |
| It is by caffeine alone that I set my mind in motion. |
_______________________________________________
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