meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sap_hybris_commerce:promotions_rules_engine:start:how_to_improve_the_performance_of_the_rule_engine [2022/09/19 13:50] – event logger Antonio Robirosasap_hybris_commerce:promotions_rules_engine:start:how_to_improve_the_performance_of_the_rule_engine [2022/10/14 15:10] (current) – aspect to log events Antonio Robirosa
Line 3: Line 3:
  
 Unpublish all promotion rules which are triggered by old coupons which are inactive. A cronjob can be created to regularly remove these unused rules Unpublish all promotion rules which are triggered by old coupons which are inactive. A cronjob can be created to regularly remove these unused rules
 +===== Log the calls to the hybris code =====
 +
 +[[https://help.sap.com/docs/SAP_COMMERCE/9d346683b0084da2938be8a285c0c27a/8784c2c84d3c415fada996ae90e38d02.html?locale=en-US&version=1905|Aspects to log the calls to the promotion engine]]
  
 ===== Log all events generated by the rule engine ===== ===== Log all events generated by the rule engine =====
Line 108: Line 111:
  
 FIXME Drools comes with a logging module [[hhttps://github.com/tkobayas/MetricLogUtils/wiki/How-to-use-MetricLogUtils|How to use MetricLogUtils]] **but it don't work with the drool version shipped with SAP commerce.** This module won't work with any drools version under 7.41.0.Final because it overrides the class PhreakNetworkNodeFactory to set up the logging beans. This class is absent in older versions of drools. FIXME Drools comes with a logging module [[hhttps://github.com/tkobayas/MetricLogUtils/wiki/How-to-use-MetricLogUtils|How to use MetricLogUtils]] **but it don't work with the drool version shipped with SAP commerce.** This module won't work with any drools version under 7.41.0.Final because it overrides the class PhreakNetworkNodeFactory to set up the logging beans. This class is absent in older versions of drools.
 +
 +===== Useful links =====
 +
 +[[https://access.redhat.com/documentation/en-us/red_hat_decision_manager/7.9/html/developing_decision_services_in_red_hat_decision_manager/performance-tuning-drl-ref_drl-rules|Chapter 20. Performance tuning considerations with DRL]] This is not useful with hybris because most of the customer only have promotion rules with coupons. This increases the performance of the engine and leaves no room for optimizations. \\
 +
 +[[https://docs.drools.org/7.21.0.Final/drools-docs/html_single/index.html|Documentation of drools 7.21]] \\
 +
 +
  
 -- Based on SAP commerce 2105 -- Based on SAP commerce 2105