Query time 0.00199
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "192.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "58.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": 58,
"rows_produced_per_join": 58,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`a`.`option_id` in (1504,1555,1606,128,129,1508,1559,1610,1258,1304,1350,119,1259,1305,1351,120,1260,1306,1352,121,1261,1307,1353,124,1267,1313,1359,1388,1417,1446,1398,1427,1456,1401,1430,1459,1404,1433,1462,1270,1316,1362)) and (`eshopuga_upgr_4122`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "111.61",
"eval_cost": "11.60",
"prefix_cost": "123.21",
"data_read_per_join": "2K"
},
"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": 58,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "11.60",
"prefix_cost": "134.81",
"data_read_per_join": "44K"
},
"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 |
466 |
119 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
468 |
120 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
470 |
121 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
476 |
124 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
484 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
486 |
129 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1464 |
1304 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1466 |
1305 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1468 |
1306 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1470 |
1307 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1482 |
1313 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1488 |
1316 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1540 |
1417 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1560 |
1427 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1566 |
1430 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1572 |
1433 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1656 |
1555 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1664 |
1559 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
465 |
119 |
1 |
0.600 |
A |
0.000 |
A |
0.000 |
A |
|
467 |
120 |
1 |
0.600 |
A |
0.000 |
A |
0.000 |
A |
|
469 |
121 |
1 |
0.600 |
A |
0.000 |
A |
0.000 |
A |
|
475 |
124 |
1 |
0.600 |
A |
0.000 |
A |
0.000 |
A |
|
483 |
128 |
1 |
1.510 |
A |
0.000 |
A |
0.000 |
A |
|
485 |
129 |
1 |
4.820 |
A |
0.000 |
A |
0.000 |
A |
|
1463 |
1304 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1465 |
1305 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1467 |
1306 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1469 |
1307 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1481 |
1313 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1487 |
1316 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1539 |
1417 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1559 |
1427 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1565 |
1430 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1571 |
1433 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1655 |
1555 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1663 |
1559 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|