Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.56"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`gp`.`group_id` in (165,164,163,162,158,152))",
"cost_info": {
"read_cost": "10.96",
"eval_cost": "2.70",
"prefix_cost": "13.66",
"data_read_per_join": "432"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"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": [
"wearethehelpful_scalesta_net.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "23.11",
"data_read_per_join": "2K"
},
"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": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"wearethehelpful_scalesta_net.gpf.feature_id",
"wearethehelpful_scalesta_net.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "32.56",
"data_read_per_join": "20K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 603 |
2068 |
1516 |
152 |
| 568 |
2091 |
1463 |
158 |
| 568 |
2092 |
1279 |
158 |
| 604 |
2108 |
1518 |
162 |
| 603 |
2108 |
1523 |
162 |
| 604 |
2107 |
1517 |
162 |
| 603 |
2107 |
1523 |
162 |
| 604 |
2106 |
1517 |
162 |
| 603 |
2106 |
1515 |
162 |
| 604 |
2105 |
1518 |
162 |
| 603 |
2105 |
1515 |
162 |
| 603 |
2111 |
1523 |
163 |
| 604 |
2111 |
1517 |
163 |
| 603 |
2109 |
1515 |
163 |
| 604 |
2109 |
1517 |
163 |
| 603 |
2112 |
1523 |
163 |
| 604 |
2112 |
1518 |
163 |
| 603 |
2110 |
1515 |
163 |
| 604 |
2110 |
1518 |
163 |
| 604 |
2116 |
1525 |
164 |
| 603 |
2116 |
1526 |
164 |
| 606 |
2116 |
1527 |
164 |
| 604 |
2115 |
1524 |
164 |
| 603 |
2115 |
1526 |
164 |
| 606 |
2115 |
1527 |
164 |
| 604 |
2114 |
1524 |
164 |
| 603 |
2114 |
1526 |
164 |
| 606 |
2114 |
1528 |
164 |
| 604 |
2117 |
1525 |
164 |
| 603 |
2117 |
1526 |
164 |
| 606 |
2117 |
1528 |
164 |
| 604 |
2122 |
1532 |
165 |
| 603 |
2122 |
1521 |
165 |
| 604 |
2125 |
1532 |
165 |
| 603 |
2125 |
1533 |
165 |
| 604 |
2124 |
1531 |
165 |
| 603 |
2124 |
1533 |
165 |
| 604 |
2123 |
1530 |
165 |
| 603 |
2123 |
1533 |
165 |
| 604 |
2120 |
1531 |
165 |
| 603 |
2120 |
1521 |
165 |
| 604 |
2121 |
1530 |
165 |
| 603 |
2121 |
1521 |
165 |