• 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: Enterprise Object Caching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enterprise Object Caching


  • Subject: Re: Enterprise Object Caching
  • From: Miguel Arroz <email@hidden>
  • Date: Fri, 25 Aug 2006 15:50:24 +0100

Hi!

Just a clarification... when you do a.b(), EO always goes to the DB to check if the relationship is fresh? I mean, if a.b() has object 1 and object 2, and then someone adds object 3 to the relationship on another app instance, when you do a.b() again, you'll see objects 1, 2 and 3?

  Yours

Miguel Arroz


On 2006/08/25, at 13:36, Ken Anderson wrote:

Because EOF doesn't know if your relationship can be completely satisfied by objects in memory, it must go to the database. As Guido mentioned, you can do a prefetch (or batch fault) the relationship to improve performance.

Also, when it goes to the DB, if the object is already in memory and is not older than the timestamp you set on your EC, it will not be loaded from the table again - EOF will just link the existing object in.

Ken

On Aug 24, 2006, at 7:15 PM, Marcos Trejo Munguia wrote:

Hi List,

I have a doubt related to object caching, suppose you have the next relationship A<->>B, if you fetch objects of A, then objects of B, it isn't supposed that when you access objects of B through objects of A this objects of B are already cached in memory and there's no need to do a trip to the db to bring them? Because I,m debugging the SQL that EOF generates and this is not happening, another query is performed to bring those objects B related to object A. It isn't enough to fetch the objects that you need to get them cached in memory?

Cheers

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


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:
40guiamac.com


This email sent to email@hidden


      "I felt like putting a bullet between
       the eyes of every Panda that wouldn't
       scr*w to save its species."       -- Fight Club

Miguel Arroz
http://www.ipragma.com



_______________________________________________
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: Enterprise Object Caching
      • From: Ken Anderson <email@hidden>
References: 
 >Enterprise Object Caching (From: Marcos Trejo Munguia <email@hidden>)
 >Re: Enterprise Object Caching (From: Ken Anderson <email@hidden>)

  • Prev by Date: Understanding the PageCache Working
  • Next by Date: Re: Enterprise Object Caching
  • Previous by thread: Re: Enterprise Object Caching
  • Next by thread: Re: Enterprise Object Caching
  • Index(es):
    • Date
    • Thread