cancel
Showing results for 
Search instead for 
Did you mean: 

Increase performance when basket has many items

Increase performance when basket has many items

 

When working with B2B, it is not uncommon for the customer to place large quantities in the basket. In addition to this, it has been noted that certain parts of the site, most notably the checkout, tend to slow down in relation to the amount of items that are added to the basket. The more items added, the slower certain areas become.

 

We suggest refining the code in order to facilitate a large basket quantity, upwards of 200 perhaps, without losing to much time waiting for reloads.

 

Specifically, the more items in the cart, the slower the following seems to process:

 

  • /Webapi/Rest/Magento\Checkout\Api\TotalsInformationManagementInterface/calculate
  • /checkout/sidebar/updateItemQty
  • /checkout/cart/updatePost
  • /checkout/cart/add
  • /checkout/cart/delete
  • /checkout/sidebar/removeItem