• 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: Practical EditingContext Design Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Practical EditingContext Design Question


  • Subject: Re: Practical EditingContext Design Question
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 16 Feb 2006 10:56:04 -0800

Hi Jeremy,


On Feb 16, 2006, at 10:34 AM, email@hidden 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Practical EditingContext Design Question
      • From: email@hidden
    • Chuck's Open Source Content Management System CMS
      • From: James Cicenia <email@hidden>
  • Prev by Date: Re: WODisplayGroup - simple question
  • Next by Date: Chuck's Open Source Content Management System CMS
  • Previous by thread: Re: Practical EditingContext Design Question
  • Next by thread: Chuck's Open Source Content Management System CMS
  • Index(es):
    • Date
    • Thread