Query time 0.00048
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.35"
},
"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": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.35",
"data_read_per_join": "104"
},
"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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "7.35",
"data_read_per_join": "320"
},
"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": [
"gaseus.gpf.feature_id",
"gaseus.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "14.35",
"data_read_per_join": "15K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 553 |
12146 |
1324 |
530 |
| 553 |
12147 |
1324 |
530 |
| 553 |
12148 |
1324 |
530 |
| 553 |
12149 |
1324 |
530 |
| 553 |
12150 |
1324 |
530 |
| 553 |
12151 |
1324 |
530 |
| 553 |
12152 |
1324 |
530 |
| 553 |
12153 |
2197 |
530 |
| 553 |
12154 |
2197 |
530 |
| 553 |
12155 |
2197 |
530 |
| 553 |
12156 |
2197 |
530 |
| 553 |
12157 |
2197 |
530 |
| 553 |
12158 |
2197 |
530 |
| 553 |
12159 |
2197 |
530 |
| 622 |
12146 |
2170 |
530 |
| 622 |
12147 |
2158 |
530 |
| 622 |
12148 |
2159 |
530 |
| 622 |
12149 |
2160 |
530 |
| 622 |
12150 |
2155 |
530 |
| 622 |
12151 |
2156 |
530 |
| 622 |
12152 |
2157 |
530 |
| 622 |
12153 |
2170 |
530 |
| 622 |
12154 |
2158 |
530 |
| 622 |
12155 |
2159 |
530 |
| 622 |
12156 |
2160 |
530 |
| 622 |
12157 |
2155 |
530 |
| 622 |
12158 |
2156 |
530 |
| 622 |
12159 |
2157 |
530 |