23.67 ms (26.56%)
|
1 |
select * from cart
JOIN shop ON shop.shopid = cart.establishmentid
where cart.userid = '22270733'
select * from cart
JOIN shop ON shop.shopid = cart.establishmentid
where cart.userid = '22270733';
|
18.91 ms (21.22%)
|
1 |
SELECT p1.shopid as shopid, p1.productid as productid, p1.productprice as productprice
FROM prodproductprice p1
WHERE p1.id = (
SELECT MAX(p2.id)
FROM prodproductprice p2
WHERE p2.shopid = p1.shopid AND p2.productid = p1.productid
) AND shopid IN ('8597665','8597665') AND productid IN ('400098936','266577626')
SELECT p1.shopid as shopid, p1.productid as productid, p1.productprice as productprice
FROM prodproductprice p1
WHERE p1.id = (
SELECT MAX(p2.id)
FROM prodproductprice p2
WHERE p2.shopid = p1.shopid AND p2.productid = p1.productid
) AND shopid IN ('8597665','8597665') AND productid IN ('400098936','266577626') ;
|
12.22 ms (13.71%)
|
1 |
SELECT s0_.id AS id_0, s0_.shopid AS shopid_1, s0_.shopproductid AS shopproductid_2, s0_.masterproductid AS masterproductid_3, s0_.shopproductname AS shopproductname_4, s0_.shopproductprice AS shopproductprice_5, s0_.shopproductdesc AS shopproductdesc_6, s0_.displayproduct AS displayproduct_7, s0_.stockout AS stockout_8 FROM shopproducts s0_ WHERE s0_.shopproductid IN (?, ?)
Parameters: [
"400098936"
"266577626"
]
SELECT s0_.id AS id_0, s0_.shopid AS shopid_1, s0_.shopproductid AS shopproductid_2, s0_.masterproductid AS masterproductid_3, s0_.shopproductname AS shopproductname_4, s0_.shopproductprice AS shopproductprice_5, s0_.shopproductdesc AS shopproductdesc_6, s0_.displayproduct AS displayproduct_7, s0_.stockout AS stockout_8 FROM shopproducts s0_ WHERE s0_.shopproductid IN ('400098936', '266577626');
|
11.88 ms (13.33%)
|
1 |
select * from cartproductvariant where cartid = 'FbJAtnijjI4HR7HOHAhC'
select * from cartproductvariant where cartid = 'FbJAtnijjI4HR7HOHAhC';
|
10.29 ms (11.54%)
|
1 |
select * from cartprescription where userid = '22270733' and establishmentid <> ''
select * from cartprescription where userid = '22270733' and establishmentid <> '';
|
6.89 ms (7.73%)
|
1 |
select * from shopproductstax where shopid IN ('8597665')
select * from shopproductstax where shopid IN ('8597665');
|
2.28 ms (2.56%)
|
1 |
select * from shoporderingtime where shopid IN ('8597665')
select * from shoporderingtime where shopid IN ('8597665');
|
1.25 ms (1.40%)
|
1 |
select * from shopsettings where shopid IN ('8597665') order by id asc
select * from shopsettings where shopid IN ('8597665') order by id asc;
|
0.87 ms (0.98%)
|
1 |
SELECT s0_.id AS id_0, s0_.shopid AS shopid_1, s0_.shopname AS shopname_2, s0_.shopaddressid AS shopaddressid_3, s0_.contactuserid AS contactuserid_4, s0_.contactname AS contactname_5, s0_.addedtime AS addedtime_6 FROM shop s0_ WHERE s0_.shopid IN (?, ?)
Parameters: [
"8597665"
"8597665"
]
SELECT s0_.id AS id_0, s0_.shopid AS shopid_1, s0_.shopname AS shopname_2, s0_.shopaddressid AS shopaddressid_3, s0_.contactuserid AS contactuserid_4, s0_.contactname AS contactname_5, s0_.addedtime AS addedtime_6 FROM shop s0_ WHERE s0_.shopid IN ('8597665', '8597665');
|
0.86 ms (0.97%)
|
1 |
SELECT c0_.id AS id_0, c0_.userid AS userid_1, c0_.cartid AS cartid_2, c0_.establishmentid AS establishmentid_3, c0_.productid AS productid_4, c0_.productvariantid AS productvariantid_5, c0_.productname AS productname_6, c0_.productcartprice AS productcartprice_7, c0_.quantity AS quantity_8, c0_.engravetext AS engravetext_9, c0_.addedtime AS addedtime_10 FROM cart c0_ WHERE c0_.userid = ? GROUP BY c0_.establishmentid
Parameters: [
"22270733"
]
SELECT c0_.id AS id_0, c0_.userid AS userid_1, c0_.cartid AS cartid_2, c0_.establishmentid AS establishmentid_3, c0_.productid AS productid_4, c0_.productvariantid AS productvariantid_5, c0_.productname AS productname_6, c0_.productcartprice AS productcartprice_7, c0_.quantity AS quantity_8, c0_.engravetext AS engravetext_9, c0_.addedtime AS addedtime_10 FROM cart c0_ WHERE c0_.userid = '22270733' GROUP BY c0_.establishmentid;
|