Query time 0.00118
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "36.52"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 12,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "1.20",
"prefix_cost": "4.20",
"data_read_per_join": "192"
},
"used_columns": [
"product_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": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"test2_gaseus.gp.product_id"
],
"rows_examined_per_scan": 7,
"rows_produced_per_join": 45,
"filtered": "54.46",
"using_index": true,
"cost_info": {
"read_cost": "7.91",
"eval_cost": "4.58",
"prefix_cost": "20.51",
"data_read_per_join": "35K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "(`test2_gaseus`.`pfv`.`lang_code` = 'en')"
}
},
{
"table": {
"table_name": "gpf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"group_id"
],
"key_length": "6",
"ref": [
"test2_gaseus.pfv.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 45,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "11.44",
"eval_cost": "4.58",
"prefix_cost": "36.53",
"data_read_per_join": "4K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
12524 |
1935 |
865 |
| 624 |
12524 |
2381 |
865 |
| 625 |
12524 |
2423 |
865 |
| 627 |
12524 |
2424 |
865 |
| 628 |
12524 |
1712 |
865 |
| 553 |
12525 |
1935 |
865 |
| 624 |
12525 |
2381 |
865 |
| 625 |
12525 |
2415 |
865 |
| 627 |
12525 |
2424 |
865 |
| 628 |
12525 |
1712 |
865 |
| 553 |
12526 |
1935 |
865 |
| 624 |
12526 |
2381 |
865 |
| 625 |
12526 |
2131 |
865 |
| 627 |
12526 |
2424 |
865 |
| 628 |
12526 |
1712 |
865 |
| 553 |
12528 |
1935 |
865 |
| 624 |
12528 |
1803 |
865 |
| 625 |
12528 |
2423 |
865 |
| 627 |
12528 |
2424 |
865 |
| 628 |
12528 |
1712 |
865 |
| 553 |
12527 |
1935 |
865 |
| 624 |
12527 |
2381 |
865 |
| 625 |
12527 |
2426 |
865 |
| 627 |
12527 |
2424 |
865 |
| 628 |
12527 |
1712 |
865 |
| 553 |
12530 |
1935 |
865 |
| 624 |
12530 |
1803 |
865 |
| 625 |
12530 |
2131 |
865 |
| 627 |
12530 |
2424 |
865 |
| 628 |
12530 |
1712 |
865 |
| 553 |
12529 |
1935 |
865 |
| 624 |
12529 |
1803 |
865 |
| 625 |
12529 |
2415 |
865 |
| 627 |
12529 |
2424 |
865 |
| 628 |
12529 |
1712 |
865 |
| 553 |
12531 |
1935 |
865 |
| 624 |
12531 |
1803 |
865 |
| 625 |
12531 |
2426 |
865 |
| 627 |
12531 |
2424 |
865 |
| 628 |
12531 |
1712 |
865 |
| 553 |
12532 |
1935 |
865 |
| 624 |
12532 |
2381 |
865 |
| 625 |
12532 |
2423 |
865 |
| 627 |
12532 |
1836 |
865 |
| 628 |
12532 |
1712 |
865 |
| 553 |
12533 |
1935 |
865 |
| 624 |
12533 |
2381 |
865 |
| 625 |
12533 |
2415 |
865 |
| 627 |
12533 |
1836 |
865 |
| 628 |
12533 |
1712 |
865 |
| 553 |
12534 |
1935 |
865 |
| 624 |
12534 |
2381 |
865 |
| 625 |
12534 |
2131 |
865 |
| 627 |
12534 |
1836 |
865 |
| 628 |
12534 |
1712 |
865 |
| 553 |
12535 |
1935 |
865 |
| 624 |
12535 |
2381 |
865 |
| 625 |
12535 |
2426 |
865 |
| 627 |
12535 |
1836 |
865 |
| 628 |
12535 |
1712 |
865 |