Query time 0.00123
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.525449254,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_prices",
"access_type": "range",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id",
"wdbi_product_id_lower_limit_usergroup_id_price_eff1727beeef",
"wdbi_usergroup_id_lower_limit_product_id_92b7e8f6a250",
"wdbi_product_id_lower_limit_usergroup_id_price_perc_3b2301d551d0",
"wdbi_lower_limit_usergroup_id_product_id_b93629431718"
],
"key": "usergroup",
"key_length": "9",
"used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
"loops": 1,
"rows": 256,
"cost": 0.44592136,
"filtered": 20,
"attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (17,180,18,16,4,5,23,24,1,22,149,190,189,3438,3439,3440,3441,136148,156245,169350,125861,122330,133778,146242,143574,121541,130403,120464,125358,154235,137235,157361,133193,166388,176206,128666,158252,135956,162915,132858,144027,124934,132112,135084,158535,147929,173481,137775,151549,162201,162374,121316,166649,167453,161383,172324,140024,156616,169021,155568,138561,121611,140621,147362,152862,129545,153509,143889,147521,149707,157865,125585,168171,120426,166942,167399,158465,119733,124196,157747,123357,139090,135156,141356,167892,127893,177999,147127,170940,137550,157189,153217,162848,161753,141168,139111,128544,152784,151672,127480,131644,140421,165385,170490,161916,175582,176104,161448,163922,151286,168486,118370,170128,142199,131161,124209,171082,129799,124886,119061,127984,133005,174711,168591,160305,177274,125020,144198) and cscart_product_prices.usergroup_id in (0,1)"
}
},
{
"table": {
"table_name": "cscart_master_products_storefront_min_price",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["product_id", "storefront_id"],
"ref": [
"u985510652_ecartify_abhi.cscart_product_prices.product_id",
"const"
],
"loops": 51.2,
"rows": 1,
"cost": 0.046614528,
"filtered": 100,
"attached_condition": "trigcond(cscart_master_products_storefront_min_price.product_id = cscart_product_prices.product_id)"
}
}
]
}
}
Result
| product_id |
price |
| 1 |
5399.99000000 |
| 4 |
699.99000000 |
| 5 |
899.99000000 |
| 16 |
349.99000000 |
| 17 |
110.10000000 |
| 18 |
0.00000000 |
| 22 |
799.99000000 |
| 23 |
599.99000000 |
| 24 |
449.99000000 |
| 149 |
53.99000000 |
| 180 |
180.00000000 |
| 189 |
1.00000000 |
| 190 |
899.95000000 |
| 3438 |
7363.44000000 |
| 3439 |
7363.44000000 |
| 3440 |
7363.44000000 |
| 3441 |
7363.44000000 |
| 118370 |
383.85000000 |
| 119061 |
630.40000000 |
| 119733 |
196.88000000 |
| 120426 |
33.91000000 |
| 120464 |
658.71000000 |
| 121316 |
732.86000000 |
| 121541 |
964.36000000 |
| 121611 |
1478.47000000 |
| 122330 |
1582.06000000 |
| 123357 |
1185.26000000 |
| 124196 |
362.31000000 |
| 124209 |
576.47000000 |
| 124886 |
1617.41000000 |
| 124934 |
1168.52000000 |
| 125020 |
1790.94000000 |
| 125358 |
255.06000000 |
| 125585 |
9.15000000 |
| 125861 |
132.18000000 |
| 127480 |
1345.48000000 |
| 127893 |
284.51000000 |
| 127984 |
1412.34000000 |
| 128544 |
303.29000000 |
| 128666 |
1446.13000000 |
| 129545 |
261.25000000 |
| 129799 |
1365.25000000 |
| 130403 |
696.99000000 |
| 131161 |
292.62000000 |
| 131644 |
13.55000000 |
| 132112 |
1313.02000000 |
| 132858 |
330.14000000 |
| 133005 |
1189.60000000 |
| 133193 |
842.15000000 |
| 133778 |
440.98000000 |
| 135084 |
1190.16000000 |
| 135156 |
1197.26000000 |
| 135956 |
392.47000000 |
| 136148 |
848.35000000 |
| 137235 |
1658.33000000 |
| 137550 |
292.28000000 |
| 137775 |
1446.38000000 |
| 138561 |
198.08000000 |
| 139090 |
1347.48000000 |
| 139111 |
1837.55000000 |
| 140024 |
1805.76000000 |
| 140421 |
1395.40000000 |
| 140621 |
559.04000000 |
| 141168 |
170.44000000 |
| 141356 |
1984.77000000 |
| 142199 |
583.90000000 |
| 143574 |
844.43000000 |
| 143889 |
1878.62000000 |
| 144027 |
248.18000000 |
| 144198 |
1919.16000000 |
| 146242 |
336.10000000 |
| 147127 |
398.82000000 |
| 147362 |
875.24000000 |
| 147521 |
379.24000000 |
| 147929 |
483.94000000 |
| 149707 |
135.15000000 |
| 151286 |
170.42000000 |
| 151549 |
1508.84000000 |
| 151672 |
242.94000000 |
| 152784 |
597.84000000 |
| 152862 |
1919.61000000 |
| 153217 |
380.72000000 |
| 153509 |
1526.52000000 |
| 154235 |
88.95000000 |
| 155568 |
1780.29000000 |
| 156245 |
236.11000000 |
| 156616 |
65.41000000 |
| 157189 |
1261.52000000 |
| 157361 |
1573.06000000 |
| 157747 |
728.25000000 |
| 157865 |
558.59000000 |
| 158252 |
176.79000000 |
| 158465 |
261.52000000 |
| 158535 |
1430.36000000 |
| 160305 |
548.46000000 |
| 161383 |
1082.46000000 |
| 161448 |
1228.96000000 |
| 161753 |
754.47000000 |
| 161916 |
1726.91000000 |
| 162201 |
1440.48000000 |
| 162374 |
1573.45000000 |
| 162848 |
1861.49000000 |
| 162915 |
1006.55000000 |
| 163922 |
999.16000000 |
| 165385 |
1112.36000000 |
| 166388 |
1594.21000000 |
| 166649 |
1531.00000000 |
| 166942 |
929.07000000 |
| 167399 |
377.94000000 |
| 167453 |
1570.65000000 |
| 167892 |
1375.22000000 |
| 168171 |
1230.50000000 |
| 168486 |
42.15000000 |
| 168591 |
1422.49000000 |
| 169021 |
333.23000000 |
| 169350 |
1746.21000000 |
| 170128 |
518.21000000 |
| 170490 |
1072.39000000 |
| 170940 |
1903.39000000 |
| 171082 |
859.54000000 |
| 172324 |
1807.99000000 |
| 173481 |
1913.61000000 |
| 174711 |
656.33000000 |
| 175582 |
580.61000000 |
| 176104 |
1822.87000000 |
| 176206 |
825.07000000 |
| 177274 |
1902.58000000 |
| 177999 |
45.15000000 |