Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "134.88"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 214,
"rows_produced_per_join": 214,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "38.58",
"eval_cost": "21.40",
"prefix_cost": "59.98",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"category_id"
],
"attached_condition": "(`cscart_db`.`cscart_products_categories`.`category_id` in (2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2992,2993,2994,2991,2934,2754,2755,2756,2757,2758,2926,2759,2919,3014,2760,2761,2762,2763,2764,2765,3006))"
}
},
{
"table": {
"table_name": "cscart_product_prices",
"access_type": "eq_ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id",
"idx_product_prices_usergroup_limit"
],
"key": "usergroup",
"used_key_parts": [
"product_id",
"usergroup_id",
"lower_limit"
],
"key_length": "9",
"ref": [
"cscart_db.cscart_products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 214,
"filtered": "100.00",
"cost_info": {
"read_cost": "53.50",
"eval_cost": "21.40",
"prefix_cost": "134.88",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"price",
"lower_limit",
"usergroup_id"
]
}
}
]
}
}
Result
| MIN(cscart_product_prices.price) |
| 0.00 |