ProductServices.php#323new_products23.64msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products62.09msSELECT 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_products17.88msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products60.51msSELECT 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_products20msSELECT product_id, MIN(`price` / `num`) as min FROM product_packaging WHERE is_showed =1AND price !=0GROUPBY product_id
ProductServices.php#324new_products61.42msSELECT 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.13msselect `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 (33)