[TYPO3-mvc] extbase based website online
Martin Kutschker
masi-no at spam-typo3.org
Wed Mar 10 21:31:23 CET 2010
Franz Koch schrieb:
>
> 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.
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list