Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.91"
},
"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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (639,798,693,637,632,800,636,691,799,692,644,645))",
"cost_info": {
"read_cost": "12.11",
"eval_cost": "2.60",
"prefix_cost": "14.71",
"data_read_per_join": "416"
},
"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": [
"softwarepirmam_hewadelivard_cscart_4.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "2.60",
"prefix_cost": "23.81",
"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": [
"softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
"softwarepirmam_hewadelivard_cscart_4.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "2.60",
"prefix_cost": "32.91",
"data_read_per_join": "20K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
5764 |
1607 |
632 |
| 656 |
5765 |
1559 |
632 |
| 656 |
5766 |
3421 |
632 |
| 656 |
5835 |
1559 |
636 |
| 656 |
5836 |
1560 |
636 |
| 656 |
5844 |
1607 |
637 |
| 656 |
5845 |
1559 |
637 |
| 656 |
5861 |
1607 |
639 |
| 656 |
5860 |
1559 |
639 |
| 656 |
5914 |
1916 |
644 |
| 656 |
5913 |
1559 |
644 |
| 656 |
5917 |
1559 |
645 |
| 656 |
5916 |
1914 |
645 |
| 656 |
5763 |
1607 |
691 |
| 656 |
6212 |
1559 |
691 |
| 656 |
5772 |
1560 |
692 |
| 656 |
6213 |
1559 |
692 |
| 656 |
5784 |
1560 |
693 |
| 656 |
6215 |
1559 |
693 |
| 766 |
5985 |
8551 |
798 |
| 766 |
8264 |
8558 |
798 |
| 766 |
5986 |
8558 |
799 |
| 766 |
8265 |
8557 |
799 |
| 766 |
5971 |
8553 |
800 |
| 766 |
8266 |
8557 |
800 |
| 766 |
8267 |
8558 |
800 |