Query time 0.00059
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "76.81"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"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": 8,
"rows_produced_per_join": 8,
"filtered": "100.00",
"index_condition": "(`cscart`.`gpf`.`group_id` in (79,77,75,74,78,76,80,81))",
"cost_info": {
"read_cost": "17.61",
"eval_cost": "1.60",
"prefix_cost": "19.21",
"data_read_per_join": "832"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"cscart.gpf.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "48.01",
"data_read_per_join": "384"
},
"used_columns": [
"product_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": [
"cscart.gpf.feature_id",
"cscart.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "76.81",
"data_read_per_join": "18K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 549 |
801 |
1224 |
74 |
| 549 |
800 |
1304 |
74 |
| 549 |
799 |
1303 |
74 |
| 549 |
798 |
1299 |
74 |
| 549 |
797 |
1226 |
74 |
| 549 |
806 |
1224 |
75 |
| 549 |
805 |
1304 |
75 |
| 549 |
804 |
1303 |
75 |
| 549 |
803 |
1299 |
75 |
| 549 |
802 |
1226 |
75 |
| 549 |
810 |
1198 |
76 |
| 549 |
809 |
1303 |
76 |
| 549 |
808 |
1299 |
76 |
| 549 |
807 |
1226 |
76 |
| 549 |
812 |
1226 |
77 |
| 549 |
811 |
1224 |
77 |
| 549 |
814 |
1305 |
78 |
| 549 |
813 |
1226 |
78 |
| 549 |
818 |
1303 |
79 |
| 549 |
817 |
1297 |
79 |
| 549 |
816 |
1283 |
79 |
| 549 |
815 |
1226 |
79 |
| 549 |
823 |
1223 |
80 |
| 549 |
822 |
1226 |
80 |
| 549 |
826 |
1224 |
81 |
| 549 |
825 |
1226 |
81 |