Sunday, July 9, 2017

Hybris Collections Performance Improvement

When you are working in Hybris with one to many relation and relation contains more than 100 elements then you are should modify the below setting.

lazy.pkcollection.prefetchsize

The default value of this setting is 100. This value controls the number to child entities to fetch when working with one to many relation.

Oracle the max value for this setting is 1000.

Hybris Jalo Session

In Hybris 5.4 or below the Jalo sessions remain in memory for next 30 minute or default session timeout even after the user has logout or his session expired.

If you are using hybris 5.4 or below, you are required to set the following flag to true close the session after the user has logout or his session expired

hybris.improvedsessionhandling=true

Hybris Cart Management

In Hybris when the user logout from the application, then Hybris delete the cart associated with the user.

Hybris provides the setting to override this behavior. Set the following property to false to change this behavior.

session.remove.cart.on.close=false

Coldfusion CFTHROW

Are you using CFThrow to throw custom exception in ColdFusion ? Wait. Read this article before using CFThrow in your application otherwis...