Query time 0.00062
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.73"
},
"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": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gpf`.`group_id` in (386,611,613,632))",
"cost_info": {
"read_cost": "2.41",
"eval_cost": "0.40",
"prefix_cost": "2.81",
"data_read_per_join": "416"
},
"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_db.gpf.group_id"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "9.81",
"data_read_per_join": "320"
},
"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": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"ref": [
"cscart_db.gp.product_id",
"cscart_db.gpf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.62",
"eval_cost": "2.30",
"prefix_cost": "21.73",
"data_read_per_join": "17K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 106 |
9102 |
25519 |
386 |
| 106 |
9103 |
25523 |
386 |
| 106 |
9104 |
25555 |
386 |
| 106 |
9105 |
26980 |
386 |
| 103 |
17249 |
35856 |
611 |
| 103 |
17250 |
25147 |
611 |
| 103 |
17248 |
35855 |
611 |
| 103 |
17246 |
35853 |
611 |
| 103 |
17247 |
35854 |
611 |
| 103 |
17245 |
21903 |
611 |
| 103 |
17261 |
35854 |
613 |
| 103 |
17260 |
35855 |
613 |
| 103 |
17259 |
35853 |
613 |
| 103 |
17258 |
21903 |
613 |
| 103 |
17263 |
25147 |
613 |
| 103 |
17262 |
35856 |
613 |
| 103 |
20987 |
21907 |
632 |
| 103 |
20985 |
22070 |
632 |
| 103 |
20986 |
21907 |
632 |
| 103 |
20978 |
35694 |
632 |
| 103 |
20979 |
35694 |
632 |
| 103 |
20980 |
35859 |
632 |
| 103 |
20981 |
35859 |
632 |
| 103 |
20982 |
27840 |
632 |
| 103 |
20983 |
27840 |
632 |
| 103 |
20984 |
22070 |
632 |
| 102 |
20987 |
22146 |
632 |
| 102 |
20985 |
30363 |
632 |
| 102 |
20986 |
30363 |
632 |
| 102 |
20978 |
22146 |
632 |
| 102 |
20979 |
30363 |
632 |
| 102 |
20980 |
22146 |
632 |
| 102 |
20981 |
30363 |
632 |
| 102 |
20982 |
22146 |
632 |
| 102 |
20983 |
30363 |
632 |
| 102 |
20984 |
22146 |
632 |