Hallo,
folgendes SQL läuft hier bei ca. 270.000 Artikel in etwa 18 Sekunden.
Das hier läuft 12 Sekunden:
Das hier 10 Sekunden:
und das hier auch 10 Sekunden:
Kann mir das jemand erklären?
Kann man das ändern?
Gruß,
hari
folgendes SQL läuft hier bei ca. 270.000 Artikel in etwa 18 Sekunden.
PHP-Code:
select p.products_base_unit_price, p.products_base_unit, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '43' and p2c.categories_id = '2'
PHP-Code:
select p.products_image, p.products_quantity, pd.products_name, p.products_quantity, p.products_base_unit_price, p.products_base_unit, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '43' and p2c.categories_id = '2' order by p.products_sort_order, pd.products_name
PHP-Code:
select p.products_image, p.products_quantity, pd.products_name, p.products_quantity, p.products_base_unit_price, p.products_base_unit, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '43' and p2c.categories_id = '2' order by p.products_sort_order, pd.products_name limit 10
PHP-Code:
select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, p.products_date_added, p.products_price, p.products_base_unit_price, p.products_base_unit, p.products_type, p.master_categories_id from products p, products_description pd where p.products_id = pd.products_id and pd.language_id = '43' and p.products_status = 1 and p.products_id in (3215, 3216, 3217, 3218, 3...........usw....ganz viel...sehr viel!!
Kann man das ändern?
Gruß,
hari