[TYPO3-english] Extbase/Fluid running out of memory

Philipp Gampe philipp.gampe at typo3.org
Tue Oct 21 09:41:06 CEST 2014


Hi Jan,

All objects are created this way, then properties copied to an array and 
- depending on how you create the nested array - copied again.
This results in 3x all properties in memory, plus some house keeping 
information from PHP itself.

Jan Bednarik wrote:

> Are there any ways how to spare some memory in Fluid template? I read
> sth. about using partials, but I don't have any in the foreach, just 2
> outside.

Do the grouping in the query (repository) and use a paginate widget to 
reduce the number of objects created.
You do not actually want to display 6000+ things on a single page. Reduce 
the number of objects needed.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!



More information about the TYPO3-english mailing list