• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When (not) to use session().defaultEditingContext()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >RE: When (not) to use session().defaultEditingContext() (From: <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Ben Ketteridge <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Mark Morris <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Ben Ketteridge <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Chuck Hill <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Mark Morris <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: James Cicenia <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Geoff Hopson <email@hidden>)

  • Prev by Date: Re: When (not) to use session().defaultEditingContext()
  • Next by Date: Re: Removing Duplicate Objects from Combined Arrays?
  • Previous by thread: Re: When (not) to use session().defaultEditingContext()
  • Next by thread: wocode TextDisplayFormatter and WOString's incorrect displays
  • Index(es):
    • Date
    • Thread