[TYPO3-mvc] Explaining loadingStrategy

Joerg Schoppet joerg at schoppet.de
Fri Oct 2 00:59:03 CEST 2009


Hi,

what does the strategy "storage" do

Joerg


Jochen Rau wrote:
> Hi Joerg.
> 
> Joerg Schoppet wrote:
>> working with relations in TCA I found the setting "loadingStrategy" =>
>> "proxy" in the blog_example.
>>
>> Can someone please explain, what in general I can "control" with
>> "loadingStrategy" and what are the possible value?
> 
> This setting triggers Extbase to load the related Objects "lazy" (in 
> opposition to "eager"). The setting "proxy" addresses a specific variant 
> of the Lazy Loading Strategy [1]. This means that the ObjectStorage 
> holding the related Objects (like Posts) is replaced by a 
> LazyLoadingProxy without the time consuming instanciation of the related 
> objects. At the first time the Posts are accessed (e.g. by saying 
> getPosts()) the objects are loaded and instanciated.
> 
> In the future there may be other loading strategies (like "ghost" for 
> 1:1 relations).
> 
> Regards
> Jochen
> 
> 
> [1] http://en.wikipedia.org/wiki/Lazy_loading


More information about the TYPO3-project-typo3v4mvc mailing list