Sometimes there is a piece of functionality that runs as efficiently as it possibly can but just isn’t fast enough to use on every page of the site. For example, the PriceItem servlet bean performs a dynamic personalized pricing calculation on a SKU based on its price attributes. The promotions granted to the user and any other pricing models that might apply are calculated efficiently, but not quickly. On a page that displays a product with four SKUs and the price of each SKU is displayed, PriceItem is invoked four times. If you find that the page is unacceptably slow, one solution is to change the functionality so that the static price, list price, and sale price are the only prices displayed on the product pages. Personalized pricing can be displayed on the Shopping Cart page.

 
loading table of contents...