Hi
I have a problem with extrem long loadtime on productdetails view and i know why (Se debug list below). When i click on a product the page generates a ton of requst to the database, but why?
I get thousand of the following DB select.
10:50:32.365 | Start Output | 16 | 172 |
10:50:32.365 | Before Content | 0 | 172 |
10:50:32.428 | Executing dataset (Dynamic.mdb: SELECT Paragraph.* FROM Paragraph WHERE Paragraph.ParagraphPageID=3 AND (('2014-3-1 10:50:32' BETWEEN Paragraph.ParagraphValidFrom AND Paragraph.ParagraphValidTo) OR Paragraph.ParagraphValidTo IS NULL) AND Paragraph.ParagraphShowParagraph = 1 AND (ParagraphApprovalState > -1 OR ParagraphApprovalState IS NULL) ORDER BY ParagraphSort ) - took: 31,2518 ms. | 63 | 234 |
10:50:32.428 | Start module (PID = 9): eCom_Catalog | 0 | 234 |
10:50:32.428 | <-- eCom: start GetContent --> | 0 | 234 |
10:50:32.444 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD2789' AND (ProductVariantID IS NULL OR ProductVariantID = '')AND EcomProducts.ProductLanguageID = 'LANG1' ) - took: 15,6259 ms. | 16 | 250 |
10:50:32.522 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID='PROD2789' ORDER BY PriceID) - took: 15,6259 ms. | 78 | 328 |
10:50:32.537 | Executing datareader (Ecom.mdb: SELECT * FROM EcomVatGroups WHERE VatGroupID = 'VATGRP1') - took: 15,6259 ms. | 16 | 344 |
10:50:32.537 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD145' AND ProductLanguageID='LANG1' ) - took: 0 ms. | 0 | 344 |
10:50:32.553 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD145') ORDER BY EcomPrices.PriceProductID) - took: 15,6259 ms. | 16 | 359 |
10:50:32.569 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD147' AND ProductLanguageID='LANG1' ) - took: 15,6259 ms. | 16 | 375 |
10:50:32.569 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD147') ORDER BY EcomPrices.PriceProductID) - took: 0 ms. | 0 | 375 |
10:50:32.584 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD149' AND ProductLanguageID='LANG1' ) - took: 15,6259 ms. | 16 | 391 |
10:50:32.600 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD149') ORDER BY EcomPrices.PriceProductID) - took: 15,6259 ms. | 16 | 406 |
10:50:32.615 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD150' AND ProductLanguageID='LANG1' ) - took: 15,6259 ms. | 16 | 422 |
10:50:32.615 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD150') ORDER BY EcomPrices.PriceProductID) - took: 0 ms. | 0 | 422 |
10:50:32.631 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD151' AND ProductLanguageID='LANG1' ) - took: 15,6259 ms. | 16 | 438 |
10:50:32.647 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD151') ORDER BY EcomPrices.PriceProductID) - took: 15,6259 ms. | 16 | 453 |
10:50:32.647 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD152' AND ProductLanguageID='LANG1' ) - took: 0 ms. | 0 | 453 |
10:50:32.662 | Executing datareader (Ecom.mdb: SELECT EcomPrices.* FROM EcomPrices WHERE PriceProductID IN('PROD152') ORDER BY EcomPrices.PriceProductID) - took: 0 ms. | 16 | 469 |
10:50:32.694 | Executing datareader (Ecom.mdb: SELECT * FROM EcomProducts WHERE ProductID = 'PROD153' AND ProductLanguageID='LANG1' ) - took: 31,2518 ms. | 31 | 50 |