Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "52.23"
},
"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": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gp`.`group_id` in (948,914,1124))",
"cost_info": {
"read_cost": "7.06",
"eval_cost": "1.80",
"prefix_cost": "8.86",
"data_read_per_join": "288"
},
"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": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "3.60",
"prefix_cost": "21.46",
"data_read_per_join": "3K"
},
"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": 43,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "26.37",
"eval_cost": "4.40",
"prefix_cost": "52.23",
"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 |
37271 |
10351 |
914 |
| 68 |
37271 |
19665 |
914 |
| 65 |
37271 |
21197 |
914 |
| 163 |
37271 |
54763 |
914 |
| 74 |
37271 |
57565 |
914 |
| 162 |
37271 |
62081 |
914 |
| 63 |
37276 |
10351 |
914 |
| 68 |
37276 |
19631 |
914 |
| 65 |
37276 |
21197 |
914 |
| 163 |
37276 |
54763 |
914 |
| 74 |
37276 |
57565 |
914 |
| 162 |
37276 |
62081 |
914 |
| 63 |
3964 |
10351 |
914 |
| 68 |
3964 |
12460 |
914 |
| 65 |
3964 |
21197 |
914 |
| 163 |
3964 |
55943 |
914 |
| 74 |
3964 |
57565 |
914 |
| 162 |
3964 |
62081 |
914 |
| 74 |
69690 |
57565 |
948 |
| 67 |
69690 |
23224 |
948 |
| 162 |
69690 |
62081 |
948 |
| 63 |
69690 |
10348 |
948 |
| 74 |
69696 |
57565 |
948 |
| 67 |
69696 |
12414 |
948 |
| 162 |
69696 |
62081 |
948 |
| 63 |
69696 |
10348 |
948 |
| 74 |
69697 |
19049 |
948 |
| 67 |
69697 |
12414 |
948 |
| 162 |
69697 |
62081 |
948 |
| 63 |
69697 |
10348 |
948 |
| 74 |
69701 |
18999 |
948 |
| 67 |
69701 |
12414 |
948 |
| 162 |
69701 |
62081 |
948 |
| 63 |
69701 |
10348 |
948 |
| 74 |
69700 |
21498 |
948 |
| 67 |
69700 |
12414 |
948 |
| 162 |
69700 |
62081 |
948 |
| 63 |
69700 |
10348 |
948 |
| 74 |
69691 |
31238 |
948 |
| 67 |
69691 |
23224 |
948 |
| 162 |
69691 |
62081 |
948 |
| 63 |
69691 |
10348 |
948 |
| 74 |
69692 |
25064 |
948 |
| 67 |
69692 |
23224 |
948 |
| 162 |
69692 |
62081 |
948 |
| 63 |
69692 |
10348 |
948 |
| 74 |
69693 |
19052 |
948 |
| 67 |
69693 |
23224 |
948 |
| 162 |
69693 |
62081 |
948 |
| 63 |
69693 |
10348 |
948 |
| 74 |
69694 |
21498 |
948 |
| 67 |
69694 |
23224 |
948 |
| 162 |
69694 |
62081 |
948 |
| 63 |
69694 |
10348 |
948 |
| 74 |
69695 |
18999 |
948 |
| 67 |
69695 |
23224 |
948 |
| 162 |
69695 |
62081 |
948 |
| 63 |
69695 |
10348 |
948 |
| 74 |
69698 |
25064 |
948 |
| 67 |
69698 |
12414 |
948 |
| 162 |
69698 |
62081 |
948 |
| 63 |
69698 |
10348 |
948 |
| 74 |
69699 |
19052 |
948 |
| 67 |
69699 |
12414 |
948 |
| 162 |
69699 |
62081 |
948 |
| 63 |
69699 |
10348 |
948 |
| 63 |
37272 |
10351 |
1124 |
| 68 |
37272 |
12468 |
1124 |
| 63 |
37831 |
10351 |
1124 |
| 68 |
37831 |
19631 |
1124 |