[TYPO3-mvc] extbase based website online
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Mar 10 23:22:10 CET 2010
Hi Masi,
>> c) complex dependencies
>> The biggest challenges in extbase for me where the complex queries
>> needed for all the dependencies on this website. As mentioned above,
>> every single content depends on the selected store and the
>> catalogs/products this store has. So no matter which tiny bit of
>> information I liked to display, I first had to resolve various
>> dependencies to see if the store actually has that
>> catalog/chapter/category/product/information. Due to that fact, most
>> times I was not able to use the built in object injection by extbase, as
>> this always returned all available objects, not the filtered ones, and
>> "post processing" (traversing through objects applying filters) just
>> didn't seem to be a good idea performance wise with thousands of products.
>
> Then I would change the model. If you need usually only a subset of related objects don't make them
> available as a collection property. I would create special purpose (query) functions in the
> repository. If the functions don't fit well into the repository maybe a service is the better choice.
Thanks, that's what I did then. In my model I call a service that's
returning the desired objects by invoking special queries in my
repositories.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list