[TYPO3-mvc] Explaining loadingStrategy

Jochen Rau jochen.rau at typoplanet.de
Tue Jul 21 14:09:45 CEST 2009


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
-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list