• 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: email@hidden
  • Date: Fri, 17 Feb 2006 11:13:36 +0100


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@hidden> a écrit sur 16/02/2006 19:56:04 :

> 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

References: 
 >Re: Practical EditingContext Design Question (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WebObjects 5.3.1 Redirect bug?
  • Next by Date: Re: pulling data from 2 tables
  • Previous by thread: Re: Global Village Consulting's Open Source Content Management System CMS
  • Next by thread: WOQuickTime
  • Index(es):
    • Date
    • Thread