Query time 0.00100
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.06"
},
"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": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (600,591,603,593,686,678,618,680,687,619,701))",
"cost_info": {
"read_cost": "10.46",
"eval_cost": "2.20",
"prefix_cost": "12.66",
"data_read_per_join": "352"
},
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "20.36",
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "28.06",
"data_read_per_join": "17K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 735 |
5333 |
7021 |
591 |
| 735 |
5334 |
7024 |
591 |
| 735 |
5363 |
7037 |
593 |
| 735 |
5364 |
7041 |
593 |
| 735 |
5502 |
7297 |
600 |
| 735 |
5503 |
7303 |
600 |
| 735 |
5594 |
7407 |
603 |
| 735 |
5595 |
7415 |
603 |
| 735 |
5647 |
7471 |
618 |
| 735 |
5648 |
7475 |
618 |
| 735 |
5651 |
7484 |
619 |
| 735 |
5654 |
7487 |
619 |
| 735 |
6114 |
7453 |
678 |
| 735 |
6115 |
7456 |
678 |
| 735 |
6146 |
7308 |
680 |
| 735 |
6147 |
7311 |
680 |
| 735 |
6185 |
7828 |
686 |
| 735 |
6186 |
7830 |
686 |
| 735 |
6187 |
7828 |
687 |
| 735 |
6188 |
7830 |
687 |
| 735 |
6300 |
7487 |
701 |
| 735 |
6299 |
7484 |
701 |