Query time 0.02122
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.263454463,
"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": 128,
"cost": 0.22335624,
"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,121590,136148,156245,169350,125861,122330,152282,146567,139654,133778,149640,159133,146242,165619,121896,143574,121541,161803,151867,130403,144684,120464,144963,125358,157738,154235,137235,157361,133193,157759,159140,166388,176206,135170,128666,120703,142104,162657,128639,137145,145590,160493,159086,144380,153320,171492,156206) 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": 25.6,
"rows": 1,
"cost": 0.023716864,
"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 |
| 120464 |
658.71000000 |
| 120703 |
988.21000000 |
| 121541 |
964.36000000 |
| 121590 |
648.83000000 |
| 121896 |
1897.33000000 |
| 122330 |
1582.06000000 |
| 125358 |
255.06000000 |
| 125861 |
132.18000000 |
| 128639 |
342.46000000 |
| 128666 |
1446.13000000 |
| 130403 |
696.99000000 |
| 133193 |
842.15000000 |
| 133778 |
440.98000000 |
| 135170 |
333.11000000 |
| 136148 |
848.35000000 |
| 137145 |
1891.38000000 |
| 137235 |
1658.33000000 |
| 139654 |
33.25000000 |
| 142104 |
1614.24000000 |
| 143574 |
844.43000000 |
| 144380 |
1984.14000000 |
| 144684 |
1613.25000000 |
| 144963 |
1798.47000000 |
| 145590 |
1453.84000000 |
| 146242 |
336.10000000 |
| 146567 |
1785.64000000 |
| 149640 |
1634.63000000 |
| 151867 |
635.93000000 |
| 152282 |
1390.54000000 |
| 153320 |
1476.35000000 |
| 154235 |
88.95000000 |
| 156206 |
729.65000000 |
| 156245 |
236.11000000 |
| 157361 |
1573.06000000 |
| 157738 |
930.52000000 |
| 157759 |
1691.84000000 |
| 159086 |
1809.23000000 |
| 159133 |
193.39000000 |
| 159140 |
639.08000000 |
| 160493 |
983.65000000 |
| 161803 |
873.90000000 |
| 162657 |
314.68000000 |
| 165619 |
1791.88000000 |
| 166388 |
1594.21000000 |
| 169350 |
1746.21000000 |
| 171492 |
1118.82000000 |
| 176206 |
825.07000000 |