Re: How can I cast a NSMutableDictionary to a EOEnterpriseObject

Mike Schrag <[email protected]> Wed, 19 Nov 2008 17:41:08 -0500
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
>>>
> Exactly.  Out of curiosity, how often do you do raw row fetches of  
> all of the attributes?  Most of the time, I am only fetching a small  
> sub-set.  That usage pattern may have been the original intention  
> and why no attempt was made to populate the snapshot cache.  That  
> said, this does seem like a very useful optimization.
I'm most interested in this optimization for being able to do highly  
optimized joins that I can then turn around and fill multiple snapshot  
cache entries at once.  For instance if I have a mandatory to-one  
relationship that I want to prefetch, if EOF was smart they would do  
that in a single query and fill in the snapshot cache for both EO's at  
once, but it's not that smart, it's really stupid and it does two  
queries.  If I have an optional prefetched to-one, it should do an  
outer join for me and do that in one query, but it does two  
queries ... There are also times when I need to do much more  
complicated SQL queries and I end up joining other tables to do it, so  
I end up with entity columns + other stuff that I can ignore that I  
would like to be able to do this.  So anyway, it's entirely a  
performance optimization for complicated scenarios, but it would be  
nice to have the option to do it relatively easily ...

ms