Enabling and disabling the optimized large shopping cart order commands

To improve the performance of large shopping carts, you can optimize the OrderItemAdd, OrderItemUpdate, OrderItemDisplay, and OrderCalculate commands.

Procedure

  • To enable the optimized code path:
    1. Edit the HCL Commerce configuration file.
    2. Add the following element in the <InstanceProperties> element:
      <OrderCommandOptimization
      com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl="true"
      />
      
  • To disable the optimized code path:
    1. Edit the HCL Commerce configuration file.
    2. Update the OrderCommandOptimization element for the OrderItemBaseCmdImpl such that its value is false:
      
      <OrderCommandOptimization
      com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl="false"
      />