This week I wanted to post a reminder to set limits to the shopping cart. Uncommonly large carts can create performance problems.
A very large shopping cart doesn't typically belong to an actual ready-to-buy shopper. Instead, they may be created from monitoring tools that replicate user checkouts and reuse the user ID, or from batch processes.
To enforce limits, WCS came up with Business Object thresholds. This allows you to use a configuration file to set limits. As WCS supports B2C and B2B clients, the default values are actually quite large.
For example, the default max cart size is 10,000. Its configured under ShoppingCartThreshold/size.
<_config:property name="size" value="10000" />
<_config:property name="quantity" value="10000" />
<_config:property name="defaultPageSize" value="100" />
<_config:property name="maximumPageSize" value="100" />
Once the limit is reached, the store will stop the operation:
This will protect the cart from growing unbounded and affect the server.
So before your next deployment, go over the configuration files and configure limits that are appropriate for your store:
This will help you avoid trouble in the future!