Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.89"
},
"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": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gp`.`group_id` in (960,1100))",
"cost_info": {
"read_cost": "4.36",
"eval_cost": "1.10",
"prefix_cost": "5.46",
"data_read_per_join": "176"
},
"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": [
"cscart_db.gp.group_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "2.20",
"prefix_cost": "13.16",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_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": 26,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "13.04",
"eval_cost": "2.69",
"prefix_cost": "28.89",
"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 |
| 104 |
69465 |
62192 |
960 |
| 67 |
69465 |
62186 |
960 |
| 63 |
69467 |
10351 |
960 |
| 104 |
69467 |
62187 |
960 |
| 67 |
69467 |
62186 |
960 |
| 63 |
69466 |
10351 |
960 |
| 104 |
69466 |
62190 |
960 |
| 67 |
69466 |
62186 |
960 |
| 63 |
69469 |
10351 |
960 |
| 104 |
69469 |
62191 |
960 |
| 67 |
69469 |
62186 |
960 |
| 63 |
69468 |
10351 |
960 |
| 104 |
69468 |
62188 |
960 |
| 67 |
69468 |
62186 |
960 |
| 63 |
69464 |
10351 |
960 |
| 104 |
69464 |
62189 |
960 |
| 67 |
69464 |
62186 |
960 |
| 63 |
65822 |
10348 |
1100 |
| 104 |
65822 |
62101 |
1100 |
| 74 |
65822 |
19150 |
1100 |
| 67 |
65822 |
24760 |
1100 |
| 63 |
65821 |
10348 |
1100 |
| 104 |
65821 |
62100 |
1100 |
| 74 |
65821 |
19150 |
1100 |
| 67 |
65821 |
24760 |
1100 |
| 63 |
65820 |
10348 |
1100 |
| 104 |
65820 |
62099 |
1100 |
| 74 |
65820 |
19150 |
1100 |
| 67 |
65820 |
24760 |
1100 |
| 63 |
65819 |
10348 |
1100 |
| 104 |
65819 |
62098 |
1100 |
| 74 |
65819 |
19150 |
1100 |
| 67 |
65819 |
24760 |
1100 |
| 63 |
65818 |
10348 |
1100 |
| 104 |
65818 |
62097 |
1100 |
| 74 |
65818 |
19150 |
1100 |
| 67 |
65818 |
24760 |
1100 |