Skip to Content
0
May 30, 2020 at 04:22 PM

How can I support 7-8 levels of recurrency for a specific type (e.g. VariantMatrixElementData)?

68 Views Last edit Jun 01, 2020 at 03:31 AM 2 rev

Hybris: 1905.13

I have a case where I need to have 7-8 levels of variant categories. This means I need to have 7-8 levels of VariantMatrixElementData. *I understand the OOTB supports 3 levels of variant categories. Beyond that, I may need to do some adjustments.

The OOTB has a defaultFieldSetBuilder which has a recurrency level of 4.

<alias alias="fieldSetBuilder" name="defaultFieldSetBuilder"/>
<bean id="defaultFieldSetBuilder">
    <property name="defaultRecurrencyLevel" value="4"/>
    <property name="defaultMaxFieldSetSize" value="50000"/>
    <property name="fieldSetLevelHelper" ref="fieldSetLevelHelper"/>
</bean>

If I change the value to 6 (while changing defaultMaxFieldSetSize to the numeric value of Integer.MAX_VALUE), I start having OutOfMemoryException.

Is it possible to have recurrency level of 4 for majority of the Types, but a recurrency level of 7 for VariantMatrixElementData? Or, what's a better way to handle this scenario?