• 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: Managing EOF caching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Managing EOF caching


  • Subject: Re: Managing EOF caching
  • From: Art Isbell <email@hidden>
  • Date: Sat, 21 Jan 2006 12:09:09 -1000

On Jan 20, 2006, at 6:51 PM, email@hidden wrote:

Assuming no undo stack and that any references to EOEnterpriseObject subclasses are broken, how does the interplay between an EC and maintenance of snapshots at the EODatabase level then work after a save changes has occured?

Snapshots are reference-counted (see <http://developer.apple.com/ documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/ Documentation/Developer/WebObjects/DeltaDoc/EOF.html#CBGDABII>). So as long as a reference to a snapshot from any editing context exists, the snapshot will remain. But when the last reference is broken (e.g., when an editing context is freed), the snapshot will be freed.


So if you have a situation in which some objects need to persist, they can be in one editing context that is kept for the life of the process. But if other objects are transient, they can be in a different temporary editing context. When these objects are no longer needed, the editing context can be freed which will free all snapshots whose only reference was in the freed editing context.

Aloha,
Art

_______________________________________________
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: Managing EOF caching (From: email@hidden)

  • Prev by Date: Re: Couting the objects that would be returned by a fetch specification
  • Next by Date: D2WQuery component refresh issue
  • Previous by thread: Re: Managing EOF caching
  • Next by thread: Re: Managing EOF caching
  • Index(es):
    • Date
    • Thread