Query time 0.00061
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "18.74"
},
"nested_loop": [
{
"table": {
"table_name": "g",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.05",
"eval_cost": "0.80",
"prefix_cost": "2.85",
"data_read_per_join": "1K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ALL",
"possible_keys": [
"idx_group_id"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 4,
"filtered": "20.00",
"using_join_buffer": "Block Nested Loop",
"cost_info": {
"read_cost": "2.07",
"eval_cost": "0.80",
"prefix_cost": "8.92",
"data_read_per_join": "416"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
],
"attached_condition": "(`pankajecarter_systemfive`.`f`.`group_id` = `pankajecarter_systemfive`.`g`.`id`)"
}
},
{
"table": {
"table_name": "p",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"pankajecarter_systemfive.g.id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "1.82",
"prefix_cost": "18.74",
"data_read_per_join": "145"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`pankajecarter_systemfive`.`p`.`product_id` in (78,79,11,41,81,107,109,91,92,34,15,31,38,80,102,28,280,282,278,7,27))"
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 548 |
group_variation_catalog_item |
278 |
0 |
10 |
PV-27186628F |
| 548 |
group_variation_catalog_item |
280 |
0 |
10 |
PV-27186628F |
| 548 |
group_variation_catalog_item |
282 |
0 |
10 |
PV-27186628F |
| 549 |
group_catalog_item |
278 |
0 |
10 |
PV-27186628F |
| 549 |
group_catalog_item |
280 |
0 |
10 |
PV-27186628F |
| 549 |
group_catalog_item |
282 |
0 |
10 |
PV-27186628F |