Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.66"
},
"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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "5.25",
"data_read_per_join": "240"
},
"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": 57,
"filtered": "54.46",
"using_index": true,
"cost_info": {
"read_cost": "9.89",
"eval_cost": "5.72",
"prefix_cost": "25.64",
"data_read_per_join": "44K"
},
"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": 57,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "14.30",
"eval_cost": "5.72",
"prefix_cost": "45.66",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
12617 |
1935 |
870 |
| 624 |
12617 |
2403 |
870 |
| 625 |
12617 |
2436 |
870 |
| 627 |
12617 |
2290 |
870 |
| 628 |
12617 |
1712 |
870 |
| 553 |
12618 |
1935 |
870 |
| 624 |
12618 |
2403 |
870 |
| 625 |
12618 |
2388 |
870 |
| 627 |
12618 |
2290 |
870 |
| 628 |
12618 |
1712 |
870 |
| 553 |
12619 |
1935 |
870 |
| 624 |
12619 |
2403 |
870 |
| 625 |
12619 |
2433 |
870 |
| 627 |
12619 |
1954 |
870 |
| 628 |
12619 |
1712 |
870 |
| 553 |
12620 |
1935 |
870 |
| 624 |
12620 |
2403 |
870 |
| 625 |
12620 |
2434 |
870 |
| 627 |
12620 |
1954 |
870 |
| 628 |
12620 |
1712 |
870 |
| 553 |
12621 |
1935 |
870 |
| 624 |
12621 |
2403 |
870 |
| 625 |
12621 |
2435 |
870 |
| 627 |
12621 |
1954 |
870 |
| 628 |
12621 |
1712 |
870 |
| 553 |
12622 |
1935 |
870 |
| 624 |
12622 |
2403 |
870 |
| 625 |
12622 |
2436 |
870 |
| 627 |
12622 |
1954 |
870 |
| 628 |
12622 |
1712 |
870 |
| 553 |
12623 |
1935 |
870 |
| 624 |
12623 |
2403 |
870 |
| 625 |
12623 |
2388 |
870 |
| 627 |
12623 |
1954 |
870 |
| 628 |
12623 |
1712 |
870 |
| 553 |
12616 |
1935 |
870 |
| 624 |
12616 |
2403 |
870 |
| 625 |
12616 |
2435 |
870 |
| 627 |
12616 |
2290 |
870 |
| 628 |
12616 |
1712 |
870 |
| 553 |
12615 |
1935 |
870 |
| 624 |
12615 |
2403 |
870 |
| 625 |
12615 |
2434 |
870 |
| 627 |
12615 |
2290 |
870 |
| 628 |
12615 |
1712 |
870 |
| 553 |
12614 |
1935 |
870 |
| 624 |
12614 |
2403 |
870 |
| 625 |
12614 |
2433 |
870 |
| 627 |
12614 |
2290 |
870 |
| 628 |
12614 |
1712 |
870 |
| 553 |
12613 |
1935 |
870 |
| 624 |
12613 |
2403 |
870 |
| 625 |
12613 |
2388 |
870 |
| 627 |
12613 |
1836 |
870 |
| 628 |
12613 |
1712 |
870 |
| 553 |
12612 |
1935 |
870 |
| 624 |
12612 |
2403 |
870 |
| 625 |
12612 |
2436 |
870 |
| 627 |
12612 |
1836 |
870 |
| 628 |
12612 |
1712 |
870 |
| 553 |
12611 |
1935 |
870 |
| 624 |
12611 |
2403 |
870 |
| 625 |
12611 |
2435 |
870 |
| 627 |
12611 |
1836 |
870 |
| 628 |
12611 |
1712 |
870 |
| 553 |
12610 |
1935 |
870 |
| 624 |
12610 |
2403 |
870 |
| 625 |
12610 |
2434 |
870 |
| 627 |
12610 |
1836 |
870 |
| 628 |
12610 |
1712 |
870 |
| 553 |
12609 |
1935 |
870 |
| 624 |
12609 |
2403 |
870 |
| 625 |
12609 |
2433 |
870 |
| 627 |
12609 |
1836 |
870 |
| 628 |
12609 |
1712 |
870 |