Query time 0.00071
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "61.21"
},
"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": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "(`portal`.`q_product_feature_variants`.`variant_id` in (28,5837,5962,6076,6078,6162,6227,6773,6781,6790,6791,6792,6806,6811,6812,6813,7613))",
"cost_info": {
"read_cost": "37.41",
"eval_cost": "3.40",
"prefix_cost": "40.81",
"data_read_per_join": "19K"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "61.21",
"data_read_per_join": "51K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
7613 |
0 |
|
Generic |
6791 |
0 |
|
Bertha |
28 |
0 |
|
Calvin Klein |
6813 |
0 |
|
Caravelle New York |
5837 |
0 |
|
Casio |
6227 |
0 |
|
Citron |
6781 |
0 |
|
DREAMING Q&P |
6790 |
0 |
|
Empress |
6811 |
0 |
|
FANMIS |
6078 |
0 |
|
Flo |
6076 |
0 |
|
Geneva |
6812 |
0 |
|
Jade LeBaum |
6773 |
0 |
|
SINOBI |
6806 |
0 |
|
Sinobi |
5962 |
0 |
|
Spectrum |
6792 |
0 |
|
Timex |
6162 |
0 |
|
Viser |