I run a website for a jewelry wholesaler.
Prices for all of their products are calculated using current metal fixes, which are updated every night.
Currently, calculations for the website are being developed using the php include function, which works great under current circumstances.
There are about 10,000 products, but prices are calculated in real time (i.e. when a web page is requested). The calculations are simple, but there are many (around 50+), and I am worried that increasing traffic may slow down the current script.
I redesigned the site and wondered if it would be useful to create a procedure in MySQL to perform the calculations.
Perhaps it will be faster than the current PHP script? Does anyone know a good reading link about using procedures?
mysql stored-procedures
ticallian
source share