Query time 0.00095
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.06"
},
"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": 96,
"rows_produced_per_join": 19,
"filtered": "19.79",
"cost_info": {
"read_cost": "18.46",
"eval_cost": "3.80",
"prefix_cost": "22.26",
"data_read_per_join": "21K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`atulecarter_atul_demo4`.`cscart_product_feature_variants`.`variant_id` in (89,106,101,102,103,100,104,108,109,110,111,112,121,114,115,117,91,135,136))"
}
},
{
"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": [
"atulecarter_atul_demo4.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.00",
"eval_cost": "3.80",
"prefix_cost": "45.06",
"data_read_per_join": "57K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 91 |
0 |
|
Apple |
| 104 |
0 |
|
Cobra |
| 111 |
0 |
|
Creative |
| 102 |
0 |
|
Garmin |
| 135 |
0 |
|
GoPro |
| 108 |
0 |
|
HTC |
| 103 |
0 |
|
Kenwood |
| 115 |
0 |
|
Koss |
| 136 |
0 |
|
Microsoft |
| 109 |
0 |
|
Motorola |
| 117 |
0 |
|
Nikon |
| 110 |
0 |
|
Nokia |
| 100 |
0 |
|
Pioneer |
| 89 |
0 |
|
Samsung |
| 121 |
0 |
|
SanDisk |
| 114 |
0 |
|
Sony |
| 101 |
0 |
|
TomTom |
| 106 |
0 |
|
Toshiba |
| 112 |
0 |
|
Yamaha |