Query time 0.00096
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.01"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"index_condition": "(`test_uchur_k`.`cscart_product_feature_variants`.`variant_id` in (178,50,58,345,335,149,334,147,342,330,346,349,1,170,333,339,336,329,352,356))",
"cost_info": {
"read_cost": "12.01",
"eval_cost": "2.00",
"prefix_cost": "14.01",
"data_read_per_join": "30K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
},
{
"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": [
"test_uchur_k.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "21.01",
"data_read_per_join": "62K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 329 |
0 |
#ffffff |
0,2 |
| 336 |
0 |
|
0,5 |
| 339 |
0 |
|
1 |
| 342 |
0 |
|
1.5 |
| 346 |
0 |
|
2,5 |
| 356 |
0 |
|
2.0 |
| 349 |
0 |
|
3,5 |
| 330 |
0 |
#ffffff |
8 |
| 335 |
0 |
|
Braid X8 |
| 50 |
0 |
|
Демисезон |
| 147 |
0 |
#ffffff |
Китай |
| 58 |
0 |
#ffffff |
Лето |
| 334 |
0 |
|
Полиэтилен |
| 333 |
0 |
#db65f5 |
Разноцветный |
| 149 |
0 |
|
Рыбалка |
| 345 |
0 |
#00ff00 |
Светло-зеленый |
| 170 |
0 |
#999999 |
Серый |
| 352 |
0 |
|
х8 |
| 1 |
1 |
|
UCHUR |
| 178 |
3 |
#ffffff |
МУНХА |