Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.02"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 45,
"rows_produced_per_join": 9,
"filtered": "20.00",
"cost_info": {
"read_cost": "9.42",
"eval_cost": "1.80",
"prefix_cost": "11.22",
"data_read_per_join": "10K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`eshopuga_upgr_4122`.`cscart_product_feature_variants`.`variant_id` in (144,140,151,150,145,153,143,108,164))"
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "22.02",
"data_read_per_join": "27K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
164 |
0 |
|
JOHNNIE WALKER |
140 |
10 |
|
Absolut Vodka |
153 |
20 |
|
Martini |
150 |
100 |
|
Zappa |
145 |
200 |
|
Martell Cognac |
108 |
300 |
|
Ricard |
144 |
400 |
|
kahlua |
151 |
600 |
|
KWV |
143 |
800 |
|
Pernod |