refreshesRefetchedObjects significant hit on efficiency
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.