Query time 0.00340
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.49"
},
"table": {
"table_name": "cscart_product_features_values",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"key_length": "15",
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"using_index_for_skip_scan": true,
"cost_info": {
"read_cost": "3.10",
"eval_cost": "0.40",
"prefix_cost": "3.50",
"data_read_per_join": "3K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`test2_gaseus`.`cscart_product_features_values`.`product_id` in (12958,12959)) and (`test2_gaseus`.`cscart_product_features_values`.`feature_id` in (646,647,595,628,627,624,625,553,626,622,623,636,637)) and (`test2_gaseus`.`cscart_product_features_values`.`lang_code` = 'en'))"
}
}
}
Result
| product_id |
feature_id |
variant_id |
| 12958 |
553 |
1973 |
| 12959 |
553 |
1973 |
| 12958 |
595 |
2000 |
| 12959 |
595 |
2000 |
| 12958 |
622 |
2504 |
| 12959 |
622 |
2504 |
| 12958 |
623 |
2501 |
| 12959 |
623 |
2501 |
| 12958 |
624 |
2503 |
| 12959 |
624 |
2503 |
| 12958 |
625 |
2413 |
| 12959 |
625 |
2413 |
| 12958 |
626 |
1680 |
| 12959 |
626 |
1680 |
| 12958 |
627 |
1659 |
| 12959 |
627 |
1659 |
| 12958 |
628 |
1660 |
| 12959 |
628 |
1660 |
| 12958 |
636 |
2348 |
| 12959 |
636 |
2348 |
| 12958 |
637 |
2345 |
| 12959 |
637 |
2345 |
| 12958 |
646 |
2369 |
| 12959 |
646 |
2370 |
| 12958 |
647 |
2373 |
| 12959 |
647 |
2374 |