• 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: EOUtilities.LocalInstanceOfObject performance problem??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOUtilities.LocalInstanceOfObject performance problem??


  • Subject: Re: EOUtilities.LocalInstanceOfObject performance problem??
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 13 Aug 2008 20:48:00 -0700


On Aug 13, 2008, at 8:16 PM, Lachlan Deck wrote:

On 14/08/2008, at 12:25 PM, Dov Rosenberg wrote:

In our case we create a new EC because we use a SharedEC for read only data.

Is the shared ec locked for reading or writing?

When we need to modify an object we create a new EC and set the reference to
the SharedEC to null and rely on the Object Store Coordinator to notify the
SharedEC when the change is committed. We need objects from the SharedEC so
we use LocalInstance to get one.

Yep.

We have fixed other similar issues by just refetching the objects
into a new EditingContext instead of using localInstance.

I would expect that to be far, far slower.

Have you tried just faulting from the global ids of the objects?


Which is exactly what localInstance does:

public static EOEnterpriseObject localInstanceOfObject(EOEditingContext ec, EOEnterpriseObject object) {
// Edited for clarity
EOGlobalID globalID = object.editingContext().globalIDForObject(object);
return ec.faultForGlobalID(globalID, ec);
}



-- Chuck Hill Senior Consultant / VP Development

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: EOUtilities.LocalInstanceOfObject performance problem?? (From: Dov Rosenberg <email@hidden>)
 >Re: EOUtilities.LocalInstanceOfObject performance problem?? (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: EOUtilities.LocalInstanceOfObject performance problem??
  • Next by Date: Re: ajax and webobjects
  • Previous by thread: Re: EOUtilities.LocalInstanceOfObject performance problem??
  • Next by thread: ERXAjaxSession, Ajax framework
  • Index(es):
    • Date
    • Thread