nt-server Posted September 28, 2006 Report Share Posted September 28, 2006 Hallo, ich habe das Problem, dass in meinem Shop mit ca 12000 Artikeln die Suchfunktion zu lange dauert. Genau genommen so lange, bis der Server ein timeout sendet. Dies ist das monströse SQL Statement, das den Sever in die Knie zwingt. SELECT distinct p.products_id, p.products_price, p.products_model, p.products_quantity, p.products_shippingtime, p.products_fsk18, p.products_image, p.products_weight, p.products_tax_class_id, pd.products_name, pd.products_short_description, pd.products_description FROM products AS p LEFT JOIN products_description AS pd ON (p.products_id = pd.products_id) LEFT OUTER JOIN products_attributes AS pa ON (p.products_id = pa.products_id) LEFT OUTER JOIN products_options_values AS pov ON (pa.options_values_id = pov.products_options_values_id) LEFT OUTER JOIN specials AS s ON (p.products_id = s.products_id) AND s.status = '1' WHERE p.products_status = '1' AND pd.language_id = '2' AND ( ( pd.products_keywords LIKE ('%suchbegriff%') OR pd.products_description LIKE ('%suchbegriff%') OR pd.products_short_description LIKE ('%suchbegriff%') OR pd.products_name LIKE ('%suchbegriff%') OR p.products_model LIKE ('%suchbegriff%') OR (pov.products_options_values_name LIKE ('%suchbegriff%') AND pov.language_id = '2') ) ) GROUP BY p.products_id ORDER BY p.products_id [/PHP] liegt es am SQL Statement oder an einer Konfiguration des Servers bzw Shopsoftware... Für jeden Hinweis bin ich dankbar. Grüsse Peter Link to comment Share on other sites More sharing options...
mobilize Posted September 4, 2008 Report Share Posted September 4, 2008 Hallo, habe auch das Problem, dass ich ein Timeout bei der Suchfunktion bekomme. Hast Du das Problem lösen können? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.