Query time 0.00070
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.44"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"rows_examined_per_scan": 54,
"rows_produced_per_join": 15,
"filtered": "27.78",
"cost_info": {
"read_cost": "4.44",
"eval_cost": "1.50",
"prefix_cost": "5.94",
"data_read_per_join": "240"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`testdobroded`.`p`.`product_id` in (27,16,17,20,194,1438,13,23,71,196,199,343,31,79,89))"
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "4",
"ref": [
"testdobroded.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "11.19",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "4",
"ref": [
"testdobroded.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "16.44",
"data_read_per_join": "11K"
},
"used_columns": [
"id",
"code"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 86 |
group_variation_catalog_item |
71 |
0 |
10 |
PV-4336B3FE6 |
| 86 |
group_variation_catalog_item |
31 |
0 |
9 |
PV-443340DBA |