Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.41"
},
"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": 5,
"rows_produced_per_join": 5,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gpf`.`group_id` in (572,545,580))",
"cost_info": {
"read_cost": "2.51",
"eval_cost": "0.50",
"prefix_cost": "3.01",
"data_read_per_join": "520"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "10.01",
"data_read_per_join": "320"
},
"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": 24,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "11.96",
"eval_cost": "2.44",
"prefix_cost": "24.42",
"data_read_per_join": "977"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 104 |
13146 |
31087 |
545 |
| 104 |
13131 |
31080 |
545 |
| 104 |
13132 |
31081 |
545 |
| 104 |
13133 |
31082 |
545 |
| 104 |
13134 |
31083 |
545 |
| 104 |
13136 |
31084 |
545 |
| 104 |
13144 |
31085 |
545 |
| 104 |
13145 |
31086 |
545 |
| 67 |
9545 |
26001 |
572 |
| 67 |
9544 |
26001 |
572 |
| 104 |
9545 |
32182 |
572 |
| 104 |
9544 |
32181 |
572 |
| 67 |
16001 |
12438 |
580 |
| 67 |
16000 |
12438 |
580 |
| 67 |
15999 |
12438 |
580 |
| 104 |
16001 |
34318 |
580 |
| 104 |
16000 |
34317 |
580 |
| 104 |
15999 |
34316 |
580 |