Project

General

Profile

Bug #105054

Updated by Andreas Kienast 2 months ago

h2. Scenario: 

 * EXT:bootstrap_package is installed 
 * A page contains 140 "Accordion" content element, each contains an empty item (=280 records) 

 h2. Symptoms 

 
 If said page is opened in the "Page" module, loading the module is slow and needs roughly 4 seconds on a MacBook Pro M3, while running TYPO3 in ddev. The situation gets worse when the "Debug" preset is enabled, the loading time expands to 20-30 seconds. 

 h2. Technical explanation 

 
 @BackendLayoutRenderer@ makes use of @RecordFactory@, which in turn resolves the records and their relations. While creating @Record@ objects, @RecordFieldTransformer@ may hit on flexform fields (@pi_flexform@). This will invoke @FlexFormSchemaFactory->createSchemataForFlexField()@. This code path is expensive, as it will run online FlexForm migrations for the full TCA *per content element*. 

 If logging to the deprecation log is enabled (which is given by enabling the "Debug" preset), things get worse as each repetitive migration may trigger the same deprecations over and over again, resulting in writing *16 GB* of data into the deprecation log *per request*.

Back