Query time 0.00170
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.61"
},
"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": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "4.90",
"data_read_per_join": "224"
},
"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": 53,
"filtered": "54.46",
"using_index": true,
"cost_info": {
"read_cost": "9.23",
"eval_cost": "5.34",
"prefix_cost": "23.93",
"data_read_per_join": "41K"
},
"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": 53,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "13.34",
"eval_cost": "5.34",
"prefix_cost": "42.61",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
12378 |
1935 |
855 |
| 624 |
12378 |
2381 |
855 |
| 625 |
12378 |
2388 |
855 |
| 627 |
12378 |
1954 |
855 |
| 628 |
12378 |
1712 |
855 |
| 553 |
12377 |
1935 |
855 |
| 624 |
12377 |
2381 |
855 |
| 625 |
12377 |
2411 |
855 |
| 627 |
12377 |
1954 |
855 |
| 628 |
12377 |
1712 |
855 |
| 553 |
12376 |
1935 |
855 |
| 624 |
12376 |
2381 |
855 |
| 625 |
12376 |
2410 |
855 |
| 627 |
12376 |
1954 |
855 |
| 628 |
12376 |
1712 |
855 |
| 553 |
12375 |
1935 |
855 |
| 624 |
12375 |
2381 |
855 |
| 625 |
12375 |
2409 |
855 |
| 627 |
12375 |
1954 |
855 |
| 628 |
12375 |
1712 |
855 |
| 553 |
12374 |
1935 |
855 |
| 624 |
12374 |
2381 |
855 |
| 625 |
12374 |
2408 |
855 |
| 627 |
12374 |
1954 |
855 |
| 628 |
12374 |
1712 |
855 |
| 553 |
12373 |
1935 |
855 |
| 624 |
12373 |
2381 |
855 |
| 625 |
12373 |
2388 |
855 |
| 627 |
12373 |
1836 |
855 |
| 628 |
12373 |
1712 |
855 |
| 553 |
12372 |
1935 |
855 |
| 624 |
12372 |
2381 |
855 |
| 625 |
12372 |
2411 |
855 |
| 627 |
12372 |
1836 |
855 |
| 628 |
12372 |
1712 |
855 |
| 553 |
12371 |
1935 |
855 |
| 624 |
12371 |
2381 |
855 |
| 625 |
12371 |
2410 |
855 |
| 627 |
12371 |
1836 |
855 |
| 628 |
12371 |
1712 |
855 |
| 553 |
12370 |
1935 |
855 |
| 624 |
12370 |
2381 |
855 |
| 625 |
12370 |
2409 |
855 |
| 627 |
12370 |
1836 |
855 |
| 628 |
12370 |
1712 |
855 |
| 553 |
12369 |
1935 |
855 |
| 624 |
12369 |
2381 |
855 |
| 625 |
12369 |
2408 |
855 |
| 627 |
12369 |
1836 |
855 |
| 628 |
12369 |
1712 |
855 |
| 553 |
12368 |
1935 |
855 |
| 624 |
12368 |
2381 |
855 |
| 625 |
12368 |
2388 |
855 |
| 627 |
12368 |
2378 |
855 |
| 628 |
12368 |
1712 |
855 |
| 553 |
12367 |
1935 |
855 |
| 624 |
12367 |
2381 |
855 |
| 625 |
12367 |
2411 |
855 |
| 627 |
12367 |
2378 |
855 |
| 628 |
12367 |
1712 |
855 |
| 553 |
12366 |
1935 |
855 |
| 624 |
12366 |
2381 |
855 |
| 625 |
12366 |
2410 |
855 |
| 627 |
12366 |
2378 |
855 |
| 628 |
12366 |
1712 |
855 |
| 553 |
12365 |
1935 |
855 |
| 624 |
12365 |
2381 |
855 |
| 625 |
12365 |
2409 |
855 |
| 627 |
12365 |
2378 |
855 |
| 628 |
12365 |
1712 |
855 |
| 553 |
12364 |
1935 |
855 |
| 624 |
12364 |
2381 |
855 |
| 625 |
12364 |
2408 |
855 |
| 627 |
12364 |
2378 |
855 |
| 628 |
12364 |
1712 |
855 |