ProductServices.php#323new_products19.38msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products66.65msSELECT pp.product_id, pd.dosage, MAX(pp.num) AS max_num, MIN(pp.num) AS min_num, MIN(pp.price) as min_price, MAX(pp.price) as max_price
FROM product_dosage pd
JOIN product_packaging pp ON pd.product_id = pp.product_id AND pd.dosage = pp.dosage
WHERE pp.is_showed =1AND pp.price !=0GROUPBY pp.product_id, pd.dosage
ORDERBY pp.product_id;
ProductServices.php#323new_products18.93msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products64.33msSELECT pp.product_id, pd.dosage, MAX(pp.num) AS max_num, MIN(pp.num) AS min_num, MIN(pp.price) as min_price, MAX(pp.price) as max_price
FROM product_dosage pd
JOIN product_packaging pp ON pd.product_id = pp.product_id AND pd.dosage = pp.dosage
WHERE pp.is_showed =1AND pp.price !=0GROUPBY pp.product_id, pd.dosage
ORDERBY pp.product_id;
ProductServices.php#323new_products18.31msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products64.13msSELECT pp.product_id, pd.dosage, MAX(pp.num) AS max_num, MIN(pp.num) AS min_num, MIN(pp.price) as min_price, MAX(pp.price) as max_price
FROM product_dosage pd
JOIN product_packaging pp ON pd.product_id = pp.product_id AND pd.dosage = pp.dosage
WHERE pp.is_showed =1AND pp.price !=0GROUPBY pp.product_id, pd.dosage
ORDERBY pp.product_id;
ProductServices.php#139new_products1.35msselect `product`.*, `product_category`.`category_id` as `pivot_category_id`, `product_category`.`product_id` as `pivot_product_id` from `product` innerjoin `product_category` on `product`.`id` = `product_category`.`product_id` where `product_category`.`category_id` in (24)