cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to lazy load hybris enum values in Backoffice

Former Member
0 Likes
746

Hi Experts,

In our project we have a lot of data using the datatype HybrisEnumValue. One of our example scenarios: we have a datatype Address, in this Address type we have a tax attribute, which is HybrisEnumValue. Whenever we open an address instance in Backoffice, the Editorarea widget tries to load the all selectable tax value into a dropdown ui-element. The amount of data are about 50k entries. Thus it takes a lot of time to have the editorarea fully loaded. So the question is, how can we configure Backoffice in a manner, so that in this case when we open the widget, the data should be lazy loaded first, instead of loading all data at once at the beginning? The other pitfall is, while loading the data Hybris also tries to read the localised name of the value, which again adds more cpu resource time to this loading process, btw in our attributediscriptor table we have about 500k. Any suggestion would be appreciated. Thanks in advance!

Cheers,

--hai

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Likes

Hi ,

You mention multiple problem occurrences in your post. My only advice in this situation is to try implementing this lazy loading by your own. Backoffice is highly extensible framework that should allow you injecting such logic rather easily.

Cheers, Jacek

Former Member
0 Likes

Hi ,

thanks for the response. Are there any examples (or api documentation) already existed, so that I can look up on the first hand? Thanks!

Cheers,

--hai