Query time 0.00113
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.35"
},
"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": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gpf`.`group_id` in (968,962,970,960))",
"cost_info": {
"read_cost": "4.16",
"eval_cost": "0.90",
"prefix_cost": "5.06",
"data_read_per_join": "936"
},
"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": 4,
"rows_produced_per_join": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "3.60",
"prefix_cost": "17.66",
"data_read_per_join": "576"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"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": 43,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "21.29",
"eval_cost": "4.40",
"prefix_cost": "43.35",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 63 |
69465 |
10351 |
960 |
| 63 |
69467 |
10351 |
960 |
| 63 |
69466 |
10351 |
960 |
| 63 |
69469 |
10351 |
960 |
| 63 |
69468 |
10351 |
960 |
| 63 |
69464 |
10351 |
960 |
| 104 |
69465 |
62192 |
960 |
| 104 |
69467 |
62187 |
960 |
| 104 |
69466 |
62190 |
960 |
| 104 |
69469 |
62191 |
960 |
| 104 |
69468 |
62188 |
960 |
| 104 |
69464 |
62189 |
960 |
| 67 |
69465 |
62186 |
960 |
| 67 |
69467 |
62186 |
960 |
| 67 |
69466 |
62186 |
960 |
| 67 |
69469 |
62186 |
960 |
| 67 |
69468 |
62186 |
960 |
| 67 |
69464 |
62186 |
960 |
| 67 |
69485 |
19936 |
962 |
| 67 |
69486 |
19936 |
962 |
| 67 |
69489 |
19936 |
962 |
| 67 |
69488 |
19936 |
962 |
| 67 |
69487 |
19936 |
962 |
| 104 |
69485 |
62197 |
962 |
| 104 |
69486 |
62198 |
962 |
| 104 |
69489 |
62201 |
962 |
| 104 |
69488 |
62200 |
962 |
| 104 |
69487 |
62199 |
962 |
| 63 |
69485 |
10351 |
962 |
| 63 |
69486 |
10351 |
962 |
| 63 |
69489 |
10351 |
962 |
| 63 |
69488 |
10351 |
962 |
| 63 |
69487 |
10351 |
962 |
| 104 |
68908 |
62222 |
968 |
| 104 |
68911 |
62224 |
968 |
| 104 |
68913 |
62226 |
968 |
| 104 |
68914 |
62227 |
968 |
| 104 |
68912 |
62225 |
968 |
| 104 |
68910 |
62223 |
968 |
| 63 |
68908 |
10351 |
968 |
| 63 |
68911 |
10351 |
968 |
| 63 |
68913 |
10351 |
968 |
| 63 |
68914 |
10351 |
968 |
| 63 |
68912 |
10351 |
968 |
| 63 |
68910 |
10351 |
968 |
| 104 |
68921 |
62228 |
970 |
| 104 |
68924 |
62231 |
970 |
| 104 |
68930 |
62237 |
970 |
| 104 |
68935 |
62241 |
970 |
| 104 |
68929 |
62236 |
970 |
| 104 |
68925 |
62232 |
970 |
| 104 |
68931 |
62238 |
970 |
| 104 |
68923 |
62230 |
970 |
| 104 |
68926 |
62233 |
970 |
| 104 |
68922 |
62229 |
970 |
| 104 |
68932 |
62239 |
970 |
| 104 |
68927 |
62234 |
970 |
| 104 |
68928 |
62235 |
970 |
| 104 |
68934 |
62240 |
970 |
| 63 |
68921 |
10351 |
970 |
| 63 |
68924 |
10351 |
970 |
| 63 |
68930 |
10351 |
970 |
| 63 |
68935 |
10351 |
970 |
| 63 |
68929 |
10351 |
970 |
| 63 |
68925 |
10351 |
970 |
| 63 |
68931 |
10351 |
970 |
| 63 |
68923 |
10351 |
970 |
| 63 |
68926 |
10351 |
970 |
| 63 |
68922 |
10351 |
970 |
| 63 |
68932 |
10351 |
970 |
| 63 |
68927 |
10351 |
970 |
| 63 |
68928 |
10351 |
970 |
| 63 |
68934 |
10351 |
970 |