Query time 0.00067
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.36"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 12,
"rows_produced_per_join": 12,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gp`.`group_id` in (1042,1043,1045,1041,1044))",
"cost_info": {
"read_cost": "5.46",
"eval_cost": "1.20",
"prefix_cost": "6.66",
"data_read_per_join": "192"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"cscart_db.gp.group_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "15.06",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"ref": [
"cscart_db.gp.product_id",
"cscart_db.gpf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 29,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "14.37",
"eval_cost": "2.93",
"prefix_cost": "32.36",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 63 |
35961 |
10348 |
1041 |
| 74 |
35961 |
12471 |
1041 |
| 67 |
35961 |
12434 |
1041 |
| 63 |
35960 |
10348 |
1041 |
| 74 |
35960 |
12471 |
1041 |
| 67 |
35960 |
12414 |
1041 |
| 63 |
35964 |
10348 |
1042 |
| 68 |
35964 |
32875 |
1042 |
| 74 |
35964 |
12471 |
1042 |
| 162 |
35964 |
62081 |
1042 |
| 63 |
35963 |
10348 |
1042 |
| 68 |
35963 |
33785 |
1042 |
| 74 |
35963 |
12471 |
1042 |
| 162 |
35963 |
62081 |
1042 |
| 68 |
35965 |
12463 |
1043 |
| 74 |
35965 |
12471 |
1043 |
| 68 |
35966 |
20468 |
1043 |
| 74 |
35966 |
12471 |
1043 |
| 68 |
35988 |
12462 |
1044 |
| 74 |
35988 |
12471 |
1044 |
| 68 |
35987 |
19640 |
1044 |
| 74 |
35987 |
12471 |
1044 |
| 68 |
35986 |
33785 |
1044 |
| 74 |
35986 |
12471 |
1044 |
| 68 |
36006 |
12462 |
1045 |
| 74 |
36006 |
12471 |
1045 |
| 63 |
36006 |
10348 |
1045 |
| 68 |
36005 |
12461 |
1045 |
| 74 |
36005 |
12471 |
1045 |
| 63 |
36005 |
10348 |
1045 |
| 68 |
36004 |
12460 |
1045 |
| 74 |
36004 |
12471 |
1045 |
| 63 |
36004 |
10348 |
1045 |