Hallo,
wo kann ich denn ansetzen wenn die Suchfunktion so dermaßen langsam ist?
Glaubt ihr es liegt am 1.3.9 vs. 1.5.1? Wenn ja mach ich mal einen Diff zwischen beiden Suchfunktionen.
Hinweis: ich habe ca. 270.000 Artikel im Shop.
Wenn ich im MySQL Admin suche mit dieser SQL:
SELECT *
FROM `products_description`
WHERE `products_description` LIKE '%oc18%'
dann bekomme ich das so: Zeige Datensätze 0 - 5 (6 insgesamt, die Abfrage dauerte 1.7392 sek.)
Das ist auch ok und würde mir gefallen.
Suche ich im Shop dann dauert es 6 Sekunden :(
Das SQL-Protokoll enthält dann auch 3 Dateien, wobei die größte mit über 2000 Zeilen scheinbar jede Produkt-Id abfragt.
Also in der Art:
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included, round(concat(price_prefix, options_values_price), 5) as value from products_attributes where products_id = '1160352' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, value;
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_model, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included, round(concat(price_prefix, options_values_price), 5) as value from products_attributes where products_id = '1160352' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, value;
Nunja, nun meine Frage. Weiß hier einer was da los ist? Warum ist das so und wie könnte man das abkürzen?
Ehe ich mich nun hinstelle und die Suche neu programmiere wollte ich zumindest mal fragen ob es andere Möglichkeiten gibt.
Gruß,
hari
wo kann ich denn ansetzen wenn die Suchfunktion so dermaßen langsam ist?
Glaubt ihr es liegt am 1.3.9 vs. 1.5.1? Wenn ja mach ich mal einen Diff zwischen beiden Suchfunktionen.
Hinweis: ich habe ca. 270.000 Artikel im Shop.
Wenn ich im MySQL Admin suche mit dieser SQL:
SELECT *
FROM `products_description`
WHERE `products_description` LIKE '%oc18%'
dann bekomme ich das so: Zeige Datensätze 0 - 5 (6 insgesamt, die Abfrage dauerte 1.7392 sek.)
Das ist auch ok und würde mir gefallen.
Suche ich im Shop dann dauert es 6 Sekunden :(
Das SQL-Protokoll enthält dann auch 3 Dateien, wobei die größte mit über 2000 Zeilen scheinbar jede Produkt-Id abfragt.
Also in der Art:
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included, round(concat(price_prefix, options_values_price), 5) as value from products_attributes where products_id = '1160352' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, value;
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_model, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select products_price, products_priced_by_attribute from products where products_id = '1160352';
I AM HERE advanced_search_result
sidebox:
Explain
select options_id, price_prefix, options_values_price, attributes_display_only, attributes_price_base_included, round(concat(price_prefix, options_values_price), 5) as value from products_attributes where products_id = '1160352' and attributes_display_only != '1' and attributes_price_base_included='1' order by options_id, value;
Nunja, nun meine Frage. Weiß hier einer was da los ist? Warum ist das so und wie könnte man das abkürzen?
Ehe ich mich nun hinstelle und die Suche neu programmiere wollte ich zumindest mal fragen ob es andere Möglichkeiten gibt.
Gruß,
hari
Kommentar