Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.40"
},
"nested_loop": [
{
"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": [
"const"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.40",
"prefix_cost": "1.40",
"data_read_per_join": "416"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"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": 60,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "6.00",
"prefix_cost": "22.40",
"data_read_per_join": "960"
},
"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": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"test2_gaseus.gpf.feature_id",
"test2_gaseus.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 60,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "6.00",
"prefix_cost": "43.40",
"data_read_per_join": "46K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
12363 |
1935 |
853 |
| 553 |
12349 |
1935 |
853 |
| 553 |
12351 |
1935 |
853 |
| 553 |
12350 |
1935 |
853 |
| 553 |
12353 |
1935 |
853 |
| 553 |
12352 |
1935 |
853 |
| 553 |
12355 |
1935 |
853 |
| 553 |
12354 |
1935 |
853 |
| 553 |
12362 |
1935 |
853 |
| 553 |
12360 |
1935 |
853 |
| 553 |
12361 |
1935 |
853 |
| 553 |
12358 |
1935 |
853 |
| 553 |
12359 |
1935 |
853 |
| 553 |
12356 |
1935 |
853 |
| 553 |
12357 |
1935 |
853 |
| 625 |
12363 |
2388 |
853 |
| 625 |
12349 |
2133 |
853 |
| 625 |
12351 |
2135 |
853 |
| 625 |
12350 |
2134 |
853 |
| 625 |
12353 |
2388 |
853 |
| 625 |
12352 |
2136 |
853 |
| 625 |
12355 |
2134 |
853 |
| 625 |
12354 |
2133 |
853 |
| 625 |
12362 |
2136 |
853 |
| 625 |
12360 |
2134 |
853 |
| 625 |
12361 |
2135 |
853 |
| 625 |
12358 |
2388 |
853 |
| 625 |
12359 |
2133 |
853 |
| 625 |
12356 |
2135 |
853 |
| 625 |
12357 |
2136 |
853 |
| 628 |
12363 |
1660 |
853 |
| 628 |
12349 |
1660 |
853 |
| 628 |
12351 |
1660 |
853 |
| 628 |
12350 |
1660 |
853 |
| 628 |
12353 |
1660 |
853 |
| 628 |
12352 |
1660 |
853 |
| 628 |
12355 |
1660 |
853 |
| 628 |
12354 |
1660 |
853 |
| 628 |
12362 |
1660 |
853 |
| 628 |
12360 |
1660 |
853 |
| 628 |
12361 |
1660 |
853 |
| 628 |
12358 |
1660 |
853 |
| 628 |
12359 |
1660 |
853 |
| 628 |
12356 |
1660 |
853 |
| 628 |
12357 |
1660 |
853 |
| 627 |
12363 |
1954 |
853 |
| 627 |
12349 |
2378 |
853 |
| 627 |
12351 |
2378 |
853 |
| 627 |
12350 |
2378 |
853 |
| 627 |
12353 |
2378 |
853 |
| 627 |
12352 |
2378 |
853 |
| 627 |
12355 |
1836 |
853 |
| 627 |
12354 |
1836 |
853 |
| 627 |
12362 |
1954 |
853 |
| 627 |
12360 |
1954 |
853 |
| 627 |
12361 |
1954 |
853 |
| 627 |
12358 |
1836 |
853 |
| 627 |
12359 |
1954 |
853 |
| 627 |
12356 |
1836 |
853 |
| 627 |
12357 |
1836 |
853 |
| 624 |
12363 |
2403 |
853 |
| 624 |
12349 |
2403 |
853 |
| 624 |
12351 |
2403 |
853 |
| 624 |
12350 |
2403 |
853 |
| 624 |
12353 |
2403 |
853 |
| 624 |
12352 |
2403 |
853 |
| 624 |
12355 |
2403 |
853 |
| 624 |
12354 |
2403 |
853 |
| 624 |
12362 |
2403 |
853 |
| 624 |
12360 |
2403 |
853 |
| 624 |
12361 |
2403 |
853 |
| 624 |
12358 |
2403 |
853 |
| 624 |
12359 |
2403 |
853 |
| 624 |
12356 |
2403 |
853 |
| 624 |
12357 |
2403 |
853 |