Query time 0.00125
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "208.61"
},
"nested_loop": [
{
"table": {
"table_name": "f",
"access_type": "ALL",
"possible_keys": [
"idx_group_id"
],
"rows_examined_per_scan": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "4.40",
"prefix_cost": "6.60",
"data_read_per_join": "2K"
},
"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": "3",
"ref": [
"pankajecarter_systemfour.f.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.00",
"eval_cost": "4.40",
"prefix_cost": "33.00",
"data_read_per_join": "8K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"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_systemfour.f.group_id"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 218,
"filtered": "100.00",
"cost_info": {
"read_cost": "132.00",
"eval_cost": "43.62",
"prefix_cost": "208.61",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
],
"attached_condition": "(`pankajecarter_systemfour`.`p`.`product_id` in (211,210,209,67,25,116,213,215,226,200,154,53,52,111,82,84,228,85,88,287,315,26,35,47,81,107,109,91,92,161,188,202,203,34,31,38,80,165,166,86,106,105,247,101,33,32,163,244,212,155,102,55,176,69,138,110,36,206,28,184,183,133,132,125,120,223,225,224,146,147,93,117,219,222,220,221,87,113,139,118,83,157,286,123,174,171,280,282,278,331,335,339,341,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397))"
}
}
]
}
}
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 |
| 550 |
group_catalog_item |
287 |
0 |
11 |
PV-7225A5C99 |
| 550 |
group_catalog_item |
315 |
0 |
11 |
PV-7225A5C99 |
| 551 |
group_variation_catalog_item |
287 |
0 |
11 |
PV-7225A5C99 |
| 551 |
group_variation_catalog_item |
315 |
0 |
11 |
PV-7225A5C99 |
| 548 |
group_variation_catalog_item |
287 |
0 |
11 |
PV-7225A5C99 |
| 548 |
group_variation_catalog_item |
315 |
0 |
11 |
PV-7225A5C99 |
| 550 |
group_catalog_item |
286 |
0 |
12 |
PV-56C8E641E |
| 551 |
group_variation_catalog_item |
286 |
0 |
12 |
PV-56C8E641E |
| 550 |
group_catalog_item |
339 |
0 |
13 |
PV-7F9386743 |
| 550 |
group_catalog_item |
335 |
0 |
13 |
PV-7F9386743 |
| 550 |
group_catalog_item |
331 |
0 |
13 |
PV-7F9386743 |
| 550 |
group_catalog_item |
341 |
0 |
13 |
PV-7F9386743 |
| 549 |
group_catalog_item |
339 |
0 |
13 |
PV-7F9386743 |
| 549 |
group_catalog_item |
335 |
0 |
13 |
PV-7F9386743 |
| 549 |
group_catalog_item |
331 |
0 |
13 |
PV-7F9386743 |
| 549 |
group_catalog_item |
341 |
0 |
13 |
PV-7F9386743 |
| 551 |
group_variation_catalog_item |
339 |
0 |
13 |
PV-7F9386743 |
| 551 |
group_variation_catalog_item |
335 |
0 |
13 |
PV-7F9386743 |
| 551 |
group_variation_catalog_item |
331 |
0 |
13 |
PV-7F9386743 |
| 551 |
group_variation_catalog_item |
341 |
0 |
13 |
PV-7F9386743 |
| 548 |
group_variation_catalog_item |
339 |
0 |
13 |
PV-7F9386743 |
| 548 |
group_variation_catalog_item |
335 |
0 |
13 |
PV-7F9386743 |
| 548 |
group_variation_catalog_item |
331 |
0 |
13 |
PV-7F9386743 |
| 548 |
group_variation_catalog_item |
341 |
0 |
13 |
PV-7F9386743 |