Query time 0.00177
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "230.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "69.00"
},
"nested_loop": [
{
"table": {
"table_name": "shared_option_variants",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"company_id"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.20",
"prefix_cost": "0.00",
"data_read_per_join": "24"
},
"used_columns": [
"variant_id",
"company_id",
"modifier",
"modifier_type"
]
}
},
{
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"rows_examined_per_scan": 69,
"rows_produced_per_join": 69,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`a`.`option_id` in (2865,2892,2919,2056,2114,2172,90,2082,2024,2140,2022,2080,2138,91,2036,2094,2152,2026,2084,2142,89,2027,2085,2143,2034,2092,2150,2032,2090,2148,2077,2135,2193,2078,2136,2194,2053,2111,2169,2071,2129,2187,2054,2112,2170,2051,2608,2663,2073,2289,2339)) and (`eshopuga_upgr_4122`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "133.81",
"eval_cost": "13.80",
"prefix_cost": "147.61",
"data_read_per_join": "3K"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 69,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "13.80",
"prefix_cost": "161.41",
"data_read_per_join": "52K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
variant_name |
406 |
89 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
408 |
90 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
410 |
91 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1964 |
2080 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1968 |
2082 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1972 |
2084 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1974 |
2085 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1984 |
2090 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1988 |
2092 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1992 |
2094 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2026 |
2111 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2028 |
2112 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2032 |
2114 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2062 |
2129 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2074 |
2135 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2076 |
2136 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2166 |
2289 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2354 |
2608 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2598 |
2892 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
405 |
89 |
1 |
3.990 |
A |
0.000 |
A |
0.000 |
A |
|
407 |
90 |
1 |
2.990 |
A |
0.000 |
A |
0.000 |
A |
|
409 |
91 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1963 |
2080 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1967 |
2082 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1971 |
2084 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1973 |
2085 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1983 |
2090 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1987 |
2092 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1991 |
2094 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2025 |
2111 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2027 |
2112 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2031 |
2114 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2061 |
2129 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2073 |
2135 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2075 |
2136 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2165 |
2289 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2353 |
2608 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2597 |
2892 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|