Query time 0.00082
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "75.61"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "q_product_feature_variants",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "(`portal`.`q_product_feature_variants`.`variant_id` in (35,36,37,39,40,41,43,48,139,143,6169,6448,6453,7652,7947,7987,8071,8646,9632,9717,9761))",
"cost_info": {
"read_cost": "46.21",
"eval_cost": "4.20",
"prefix_cost": "50.41",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
},
{
"table": {
"table_name": "q_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.q_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "75.61",
"data_read_per_join": "63K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
7947 |
0 |
|
Ash Brown |
6448 |
0 |
|
blue |
7987 |
0 |
|
Cool Red |
9717 |
0 |
|
white |
7652 |
0 |
|
Bestway |
36 |
0 |
|
Black |
9761 |
0 |
|
Black&White |
8646 |
0 |
|
Blue |
39 |
0 |
|
Brown |
6169 |
0 |
|
gray |
139 |
0 |
|
Green |
9632 |
0 |
|
grey |
8071 |
0 |
|
Mulberry Purple |
48 |
0 |
|
multicolor |
43 |
0 |
|
Orange |
41 |
0 |
|
Pink |
143 |
0 |
|
Purple |
37 |
0 |
|
Red |
35 |
0 |
|
white |
40 |
0 |
|
Yellow |
6453 |
0 |
|
Yellow & Blue |