• 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: Force Refresh Relation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Refresh Relation


  • Subject: Re: Force Refresh Relation
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 20 Sep 2007 20:18:09 +1000

On 20/09/2007, at 6:41 PM, Alexander Spohr wrote:

Am 20.09.2007 um 08:19 schrieb Lachlan Deck:

Well put. Would you have any ideas, however, why unless I use invalidateAllObjects on the shared ec periodically it doesn't pick up newly inserted objects added by another app into the db, or indeed forgetting objects that have been marked with isDeleted=true (which is part of the restricting qualifier)?

Because a shared edcon is considered to hold read-only data anyway?

No, the shared editing context is read-mostly; not read-only. It does indeed automatically (via notification observing) refresh objects it knows about that have been modified/saved in another context. Likewise, if you create a new object via another context the api tells you to refetch.


In my case, objects are modified and inserted via a separate application, thus there's no notifications of updates and no global ids inserted for new ones.

I'm using a timer to periodically refetch the various entities in the app into the shared ec. This is not modelled in the eomodel seeing as there's more than one app using the models. The timestamp lag is set to around 5 minutes on the shared ec.

Don’t use a shared edcon if you refresh it anyway. Use a new one instead of refreshing. The refresh renders it useless.

On the contrary...

with regards,
--

Lachlan Deck



_______________________________________________
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: 
 >Force Refresh Relation (From: "Daniele Corti" <email@hidden>)
 >Re: Force Refresh Relation (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Force Refresh Relation
  • Next by Date: Re: Invoking a component with arguments in WOD
  • Previous by thread: Re: Force Refresh Relation
  • Next by thread: Re: Force Refresh Relation
  • Index(es):
    • Date
    • Thread