Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.61"
},
"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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (997,989,990,988,992,996,1001,993,998,1000,1005,1004))",
"cost_info": {
"read_cost": "11.41",
"eval_cost": "2.40",
"prefix_cost": "13.81",
"data_read_per_join": "384"
},
"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": [
"softwarepirmam_hewadelivard_cscart_4.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "22.21",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
"softwarepirmam_hewadelivard_cscart_4.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "30.61",
"data_read_per_join": "18K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 704 |
10355 |
9230 |
988 |
| 656 |
10355 |
1609 |
988 |
| 704 |
10354 |
9230 |
988 |
| 656 |
10354 |
1558 |
988 |
| 704 |
10356 |
9231 |
989 |
| 656 |
10356 |
1558 |
989 |
| 704 |
10364 |
9231 |
989 |
| 656 |
10364 |
6283 |
989 |
| 656 |
10368 |
1559 |
990 |
| 682 |
10368 |
9235 |
990 |
| 656 |
10369 |
1560 |
990 |
| 682 |
10369 |
9235 |
990 |
| 656 |
10407 |
1560 |
992 |
| 656 |
10406 |
1559 |
992 |
| 656 |
10413 |
1674 |
993 |
| 656 |
10412 |
1559 |
993 |
| 656 |
10436 |
1607 |
996 |
| 656 |
10437 |
1600 |
996 |
| 704 |
10447 |
9270 |
997 |
| 656 |
10447 |
1558 |
997 |
| 704 |
10448 |
9270 |
997 |
| 656 |
10448 |
1609 |
997 |
| 653 |
10449 |
3733 |
998 |
| 656 |
10449 |
1558 |
998 |
| 653 |
10450 |
3733 |
998 |
| 656 |
10450 |
1725 |
998 |
| 656 |
10482 |
1607 |
1000 |
| 656 |
10483 |
1560 |
1000 |
| 656 |
10485 |
1559 |
1001 |
| 656 |
10486 |
1560 |
1001 |
| 656 |
10551 |
1559 |
1004 |
| 656 |
10552 |
1560 |
1004 |
| 656 |
10553 |
1560 |
1005 |
| 656 |
10554 |
1559 |
1005 |