• 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
refreshesRefetchedObjects significant hit on efficiency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

refreshesRefetchedObjects significant hit on efficiency


  • Subject: refreshesRefetchedObjects significant hit on efficiency
  • From: Jonathan Rochkind <email@hidden>
  • Date: Thu, 18 Mar 2004 16:09:09 -0600

I'm working on optimizing some EOF intensive action methods lately, if you've noticed from my list questions.

It appears to me that setting 'refreshesRefetchedObjects' to true on a fetch spec makes the objectsWithFetchSpecification call take _significantly_ longer to return, for a result set of even a hundred objects or so. It's a pretty significant difference, it can easily double the time it takes to complete that method---more if you are also using prefetchingRelationshipKeyPaths (which makes sense).

This is to bad, as in the stuff I'm working on it would be really nice to ensure fresh from the db values, especially when it comes to relationships (and refreshesRefetchedObjects with prefetching relationship keypaths is the only good way to get fresh from db values for relationships)... but the cost is just too high for me here. It's a part of code where I need to do multiple fetches to get a couple hundred objects with many related objects through a bunch of relationships, and the total amount of time is just adding up unacceptably. If I turn of refreshesRefetchedObjects, it seems to have a really beneficial effect.

--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: refreshesRefetchedObjects significant hit on efficiency
      • From: Chuck Hill <email@hidden>
    • Re: refreshesRefetchedObjects significant hit on efficiency
      • From: Ray Ackland <email@hidden>
  • Prev by Date: Re: Losing my mind
  • Next by Date: Re: 5.2.3 Boolean Bugs?????
  • Previous by thread: Re: Override synchronizesVariablesWithBindings() or isStateless()?
  • Next by thread: Re: refreshesRefetchedObjects significant hit on efficiency
  • Index(es):
    • Date
    • Thread