Query time 0.00135
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.12"
},
"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": 19,
"rows_produced_per_join": 19,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gp`.`group_id` in (1088,1090,1087,1089,1081,1091,1084,1086))",
"cost_info": {
"read_cost": "8.66",
"eval_cost": "1.90",
"prefix_cost": "10.56",
"data_read_per_join": "304"
},
"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": 38,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.50",
"eval_cost": "3.80",
"prefix_cost": "23.86",
"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": 46,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "22.61",
"eval_cost": "4.64",
"prefix_cost": "51.12",
"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 |
66503 |
10351 |
1081 |
| 178 |
66503 |
62380 |
1081 |
| 63 |
66504 |
10351 |
1081 |
| 178 |
66504 |
62381 |
1081 |
| 63 |
66508 |
10351 |
1084 |
| 178 |
66508 |
62381 |
1084 |
| 63 |
66509 |
10351 |
1084 |
| 178 |
66509 |
62382 |
1084 |
| 63 |
66513 |
10351 |
1086 |
| 178 |
66513 |
62380 |
1086 |
| 63 |
66514 |
10351 |
1086 |
| 178 |
66514 |
62381 |
1086 |
| 63 |
66515 |
10351 |
1086 |
| 178 |
66515 |
62382 |
1086 |
| 63 |
66517 |
10351 |
1087 |
| 178 |
66517 |
62381 |
1087 |
| 63 |
66516 |
10351 |
1087 |
| 178 |
66516 |
62380 |
1087 |
| 63 |
66518 |
10351 |
1087 |
| 178 |
66518 |
62382 |
1087 |
| 63 |
69045 |
10351 |
1088 |
| 68 |
69045 |
19614 |
1088 |
| 178 |
69045 |
62380 |
1088 |
| 63 |
69046 |
10351 |
1088 |
| 68 |
69046 |
19614 |
1088 |
| 178 |
69046 |
62381 |
1088 |
| 63 |
69380 |
10351 |
1089 |
| 178 |
69380 |
62386 |
1089 |
| 102 |
69380 |
62387 |
1089 |
| 63 |
69381 |
10351 |
1089 |
| 178 |
69381 |
62388 |
1089 |
| 102 |
69381 |
62387 |
1089 |
| 63 |
69383 |
10351 |
1090 |
| 68 |
69383 |
19631 |
1090 |
| 178 |
69383 |
62380 |
1090 |
| 63 |
69384 |
10351 |
1090 |
| 68 |
69384 |
19631 |
1090 |
| 178 |
69384 |
62381 |
1090 |
| 63 |
69803 |
10351 |
1091 |
| 68 |
69803 |
19614 |
1091 |
| 178 |
69803 |
62380 |
1091 |
| 162 |
69803 |
62081 |
1091 |
| 63 |
69804 |
10351 |
1091 |
| 68 |
69804 |
19614 |
1091 |
| 178 |
69804 |
62381 |
1091 |
| 162 |
69804 |
62081 |
1091 |
| 162 |
69804 |
62843 |
1091 |
| 63 |
69805 |
10351 |
1091 |
| 68 |
69805 |
19631 |
1091 |
| 178 |
69805 |
62382 |
1091 |
| 162 |
69805 |
62081 |
1091 |
| 162 |
69805 |
62843 |
1091 |