Query time 0.00084
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.40"
},
"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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "(`cscart_db`.`gp`.`group_id` in (428,429,430,435,376))",
"cost_info": {
"read_cost": "6.86",
"eval_cost": "1.60",
"prefix_cost": "8.46",
"data_read_per_join": "256"
},
"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": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "14.06",
"data_read_per_join": "1K"
},
"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": "product_id",
"used_key_parts": [
"product_id",
"feature_id"
],
"key_length": "6",
"ref": [
"cscart_db.gp.product_id",
"cscart_db.gpf.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 10,
"filtered": "50.00",
"using_index": true,
"cost_info": {
"read_cost": "8.29",
"eval_cost": "1.03",
"prefix_cost": "24.40",
"data_read_per_join": "410"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "(`cscart_db`.`pfv`.`lang_code` = 'en')"
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 102 |
8928 |
26717 |
376 |
| 102 |
6868 |
24794 |
376 |
| 103 |
6734 |
27814 |
428 |
| 102 |
6734 |
25181 |
428 |
| 103 |
6732 |
24375 |
428 |
| 102 |
6732 |
25181 |
428 |
| 103 |
6740 |
24376 |
428 |
| 102 |
6740 |
25169 |
428 |
| 103 |
6733 |
24375 |
428 |
| 102 |
6733 |
25169 |
428 |
| 103 |
6735 |
27814 |
428 |
| 102 |
6735 |
25169 |
428 |
| 103 |
6739 |
24376 |
428 |
| 102 |
6739 |
25181 |
428 |
| 102 |
6741 |
24384 |
429 |
| 102 |
6742 |
22004 |
429 |
| 102 |
6743 |
27815 |
430 |
| 102 |
6744 |
26521 |
430 |
| 103 |
6749 |
27820 |
435 |
| 103 |
6750 |
27821 |
435 |
| 103 |
6753 |
27823 |
435 |
| 103 |
6752 |
27822 |
435 |