Greetings All,
I have a couple of questions about performance.
1. I have an xmlpackage which queries the DB for the top 3 bestselling products in the past 7 days for a given category. I then display these on the category page. If there have been no sales (or less than 3) - then I'd like to extend the search to the previous 14days & then the previous 30 & then 60 etc - until I get 3 results. I realise I could achieve this by having multiple queries in the xmlpackage but I'm wondering what the performance implications are of this & if there's a better way?
2. I have an xmlpackage which displays just one product in a specific way - I call this xmlpackage from quite a few pages & just pass it the productid - what are the performance implications of this - let's say I call this same xmlpackage 12 times on the same page - I know this will result in 13 DB queries (the one for the page & then the 12 times this xmlpackage is called) - but is that a big deal?
I'd be grateful for your thoughts.
TTFN
BFG