Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.31"
},
"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": 12,
"rows_produced_per_join": 12,
"filtered": "100.00",
"index_condition": "(`wearethehelpful_scalesta_net`.`gp`.`group_id` in (165,164))",
"cost_info": {
"read_cost": "4.71",
"eval_cost": "1.20",
"prefix_cost": "5.91",
"data_read_per_join": "192"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "1.20",
"prefix_cost": "10.11",
"data_read_per_join": "1K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "1.20",
"prefix_cost": "14.31",
"data_read_per_join": "9K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 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 |