Re: questions about SharedEditingContext
Re: questions about SharedEditingContext
- Subject: Re: questions about SharedEditingContext
- From: Helge Städtler <email@hidden>
- Date: Wed, 20 Jul 2005 21:24:53 +0200
Hello Helen,
have you thought about why you want to use shared EC?
>From my point of view sharedEC is only valuable if you have a limited amount
of data which is needed very VERY *VERY* often by your app in a *read
only*-manner (e.g. if you have many MANY *MANY* direct-action-requests which
query for read-only-stuff).
In other cases I would not use it. I never used it, because it lead to some
situations where you will get trouble with e.g. relationships and with
locking if you tangle the objects in a shared EC through changing stuff in
other ec's.
you should think twice before using them. my opinion. "shared" does not mean
AFAIK that two app-instances synchronize their "shared" EC's. this is a
different problem.
regards,
helge
Am 20.07.2005 20:56 Uhr schrieb "Helen He" unter <email@hidden> / On
20.07.2005 20:56 Uhr "Helen He" wrote using address <email@hidden>:
> Hi, all:
>
> I am planning to use SharedEditingContext in one of my applications
> which only display the data when user searches. I have no experience
> about using this editing context. Although I have searched internet for
> info and read some docs, I still have several questions need to be
> asked:
> 1. From the doc, it says 'Since shared editing contexts listen for
> ObjectsChangedInStoreNotifications, the shared editing context updates
> when it learns that an object was modified'. Does that also mean if the
> database records changed by other applications, the shared editing
> context will get the notification too. If it is not, then how the
> application can detect something has been changed in external data
> store?
>
> 2. Does the SharedEditingContext only work with the
> fetchSpecifications which are pointed by either 'Share all objects' or
> 'Share objects fetched with' options in Shared Object Inspector OR it
> can work with any regular fetchSpecifications?
>
> 3. After shared EO objects are loaded into sharedEditingContext at
> Application level, how can we retrieve the data that is already in
> sharedEditingContext at each page ?
>
> 4. Is that 'new EOEditingContext().sharedEditingContext()' is same as
> 'EOSharedEditingContext.defaultSharedEditingContext()'? If it is not,
> how can we get the same object of EOSharedEditingContext as in the
> application level, which will be used to get objects in each session or
> in each page?
>
> 5. Does anybody find any memory issue with using
> EOSharedEditingContext?
>
> 6. Can anyone provide some sample code for using the
> EOSharedEditingContext both in Application level and page level?
>
> These are all my questions for now. Hope to see your response soon.
> Thanks in advance!
>
> Helen
>
> _______________________________________________
> 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
>
_______________________________________________
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