Query time 0.00150
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "223.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "68.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": 68,
"rows_produced_per_join": 68,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`a`.`option_id` in (240,376,434,492,143,332,333,4157,4168,269,536,537,538,241,377,435,493,235,371,429,487,231,367,425,483,219,355,413,471,270,515,516,517,4156,4167,243,379,437,495,208,344,402,460,261,396,454,512)) and (`eshopuga_upgr_4122`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "128.61",
"eval_cost": "13.60",
"prefix_cost": "142.21",
"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": 68,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "13.60",
"prefix_cost": "155.81",
"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 |
748 |
332 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
766 |
344 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
788 |
355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
812 |
367 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
820 |
371 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
830 |
376 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
832 |
377 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
836 |
379 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
870 |
396 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
882 |
402 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
904 |
413 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
928 |
425 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
936 |
429 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
946 |
434 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
948 |
435 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
952 |
437 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
986 |
454 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
990 |
515 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
992 |
516 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1018 |
536 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1020 |
537 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
747 |
332 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
765 |
344 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
787 |
355 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
811 |
367 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
819 |
371 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
829 |
376 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
831 |
377 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
835 |
379 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
869 |
396 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
881 |
402 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
903 |
413 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
927 |
425 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
935 |
429 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
945 |
434 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
947 |
435 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
951 |
437 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
985 |
454 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
989 |
515 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
991 |
516 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1017 |
536 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
1019 |
537 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|