Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.21"
},
"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": 141,
"rows_produced_per_join": 25,
"filtered": "18.44",
"cost_info": {
"read_cost": "25.81",
"eval_cost": "5.20",
"prefix_cost": "31.01",
"data_read_per_join": "29K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`atulecarter_atul_demo2`.`cscart_product_feature_variants`.`variant_id` in (89,101,102,100,91,111,121,114,112,115,117,135,103,104,106,45,82,108,75,72,54,81,110,79,109,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_demo2.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "62.21",
"data_read_per_join": "78K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 45 |
0 |
|
16GB |
| 79 |
0 |
|
256MB |
| 81 |
0 |
|
2GB |
| 54 |
0 |
|
32GB |
| 75 |
0 |
|
4GB |
| 82 |
0 |
|
512MB |
| 72 |
0 |
|
8GB |
| 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 |