Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.26"
},
"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": 2,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.40",
"prefix_cost": "2.40",
"data_read_per_join": "208"
},
"used_columns": [
"feature_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": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"atulecarter_atul_demo2.gpf.feature_id"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 17,
"filtered": "99.80",
"using_index": true,
"cost_info": {
"read_cost": "2.70",
"eval_cost": "3.59",
"prefix_cost": "8.70",
"data_read_per_join": "13K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "(`atulecarter_atul_demo2`.`pfv`.`lang_code` = 'en')"
}
},
{
"table": {
"table_name": "gp",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"group_id"
],
"key_length": "6",
"ref": [
"atulecarter_atul_demo2.pfv.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "17.96",
"eval_cost": "3.59",
"prefix_cost": "30.26",
"data_read_per_join": "287"
},
"used_columns": [
"product_id",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 550 |
187 |
1202 |
17 |
| 550 |
318 |
1202 |
17 |
| 550 |
319 |
1202 |
17 |
| 550 |
320 |
1202 |
17 |
| 550 |
321 |
1202 |
17 |
| 550 |
322 |
1202 |
17 |
| 550 |
323 |
1202 |
17 |
| 550 |
324 |
1202 |
17 |
| 550 |
325 |
1202 |
17 |
| 550 |
326 |
1203 |
17 |
| 550 |
327 |
1203 |
17 |
| 550 |
328 |
1203 |
17 |
| 550 |
329 |
1203 |
17 |
| 550 |
330 |
1203 |
17 |
| 550 |
331 |
1203 |
17 |
| 550 |
332 |
1203 |
17 |
| 550 |
333 |
1203 |
17 |
| 550 |
334 |
1203 |
17 |
| 549 |
187 |
1199 |
17 |
| 549 |
318 |
1199 |
17 |
| 549 |
319 |
1199 |
17 |
| 549 |
320 |
1200 |
17 |
| 549 |
321 |
1200 |
17 |
| 549 |
322 |
1200 |
17 |
| 549 |
323 |
1201 |
17 |
| 549 |
324 |
1201 |
17 |
| 549 |
325 |
1201 |
17 |
| 549 |
326 |
1199 |
17 |
| 549 |
327 |
1199 |
17 |
| 549 |
328 |
1199 |
17 |
| 549 |
329 |
1200 |
17 |
| 549 |
330 |
1200 |
17 |
| 549 |
331 |
1200 |
17 |
| 549 |
332 |
1201 |
17 |
| 549 |
333 |
1201 |
17 |
| 549 |
334 |
1201 |
17 |
| 548 |
187 |
1194 |
17 |
| 548 |
318 |
1193 |
17 |
| 548 |
319 |
1197 |
17 |
| 548 |
320 |
1194 |
17 |
| 548 |
321 |
1195 |
17 |
| 548 |
322 |
1196 |
17 |
| 548 |
323 |
1193 |
17 |
| 548 |
324 |
1195 |
17 |
| 548 |
325 |
1196 |
17 |
| 548 |
326 |
1197 |
17 |
| 548 |
327 |
1195 |
17 |
| 548 |
328 |
1196 |
17 |
| 548 |
329 |
1194 |
17 |
| 548 |
330 |
1195 |
17 |
| 548 |
331 |
1196 |
17 |
| 548 |
332 |
1194 |
17 |
| 548 |
333 |
1195 |
17 |
| 548 |
334 |
1196 |
17 |