Query time 0.00060
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.41"
},
"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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (872,877,908,881,892,893,875,895))",
"cost_info": {
"read_cost": "7.61",
"eval_cost": "1.60",
"prefix_cost": "9.21",
"data_read_per_join": "256"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "14.81",
"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": [
"softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
"softwarepirmam_hewadelivard_cscart_4.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "20.41",
"data_read_per_join": "12K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 682 |
9077 |
8818 |
872 |
| 682 |
9076 |
8656 |
872 |
| 682 |
9110 |
8656 |
875 |
| 682 |
9111 |
8703 |
875 |
| 682 |
9124 |
8656 |
877 |
| 682 |
9125 |
8703 |
877 |
| 682 |
9234 |
8656 |
881 |
| 682 |
9235 |
8829 |
881 |
| 682 |
9450 |
8659 |
892 |
| 682 |
9451 |
8658 |
892 |
| 682 |
9454 |
8659 |
893 |
| 682 |
9455 |
8658 |
893 |
| 682 |
9465 |
8656 |
895 |
| 682 |
9466 |
8787 |
895 |
| 682 |
9829 |
8656 |
908 |
| 682 |
9816 |
8703 |
908 |