Query time 0.00242
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "617.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "205.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": 205,
"rows_produced_per_join": 205,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`a`.`option_id` in (330,248,334,335,4150,332,4161,4151,4162,2843,2844,2845,2846,2851,2849,2850,2853,4171,2852,4170,4169,2854,2838,2839,2840,2841,4152,4163,143,333,4153,4164,4155,4166,254,388,446,504,234,370,428,486,221,357,415,473,4149,4160,228,364,422,480,262,394,452,510,246,382,440,498,267,533,534,535,206,342,400,458,268,518,519,520,257,391,449,507,216,352,410,468,233,369,427,485)) and (`eshopuga_upgr_4122`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "330.01",
"eval_cost": "41.00",
"prefix_cost": "371.01",
"data_read_per_join": "9K"
},
"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": 205,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "41.00",
"prefix_cost": "412.01",
"data_read_per_join": "156K"
},
"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 |
744 |
330 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
748 |
332 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
750 |
334 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
762 |
342 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
782 |
352 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
792 |
357 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
806 |
364 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
816 |
369 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
818 |
370 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
842 |
382 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
854 |
388 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
860 |
391 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
866 |
394 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
878 |
400 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
898 |
410 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
908 |
415 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
922 |
422 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
932 |
427 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
934 |
428 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
958 |
440 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
970 |
446 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
976 |
449 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
982 |
452 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
994 |
518 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
996 |
519 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1014 |
533 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
1016 |
534 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2547 |
2839 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2549 |
2840 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2551 |
2843 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2553 |
2844 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2555 |
2845 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2557 |
2846 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
2576 |
2852 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
|
3251 |
2851 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
None |
3252 |
2849 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
None |
3253 |
2850 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
None |
3430 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Christmas |
3431 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Anniversary |
3432 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Birthday |
3433 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Labor Day |
3434 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Business Gift |
3435 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Congratulations |
3436 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Funeral |
3437 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Get Well |
3438 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Housewarming |
3439 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
I'm Sorry |
3440 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Just Because |
3441 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Love & Romance |
3442 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Thanksgiving |
3443 |
4169 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Other |
3444 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Girlfriend/Wife |
3445 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Mom |
3446 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Grandmother |
3447 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Daughter |
3448 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Dad/Grandfather |
3449 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Boyfriend/Husband |
3450 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Co-Worker |
3451 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Friend |
3452 |
4170 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
Other |
3453 |
4171 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
None |
3454 |
4171 |
0 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Cadbury Bar (1 Piece) |
3455 |
4171 |
0 |
22.000 |
A |
0.000 |
A |
0.000 |
A |
Cadbury Box (8 Pieces) |
3456 |
4171 |
0 |
34.000 |
A |
0.000 |
A |
0.000 |
A |
Cadbury Box (12 Pieces) |
3457 |
4171 |
0 |
18.000 |
A |
0.000 |
A |
0.000 |
A |
Lindt Milk Chocolate |
3458 |
4171 |
0 |
5.590 |
A |
0.000 |
A |
0.000 |
A |
Lindt Dark Sea Salt |
743 |
330 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
747 |
332 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
749 |
334 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
761 |
342 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
781 |
352 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
791 |
357 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
805 |
364 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
815 |
369 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
817 |
370 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
841 |
382 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
853 |
388 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
859 |
391 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
865 |
394 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
877 |
400 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
897 |
410 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
907 |
415 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
921 |
422 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
931 |
427 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
933 |
428 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
957 |
440 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
969 |
446 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
975 |
449 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
981 |
452 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
993 |
518 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
995 |
519 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
1013 |
533 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
1015 |
534 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2546 |
2839 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
2548 |
2840 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2550 |
2843 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
|
2552 |
2844 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
|
2554 |
2845 |
1 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
|
2556 |
2846 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
|
2564 |
2849 |
1 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
Chrysanthemum Spray (Green) |
2571 |
2850 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (Yellow) |
2574 |
2851 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Lily Calla (White) |
2575 |
2852 |
1 |
9.000 |
A |
0.000 |
A |
0.000 |
A |
|
2565 |
2849 |
2 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
Aspidistra Leaf |
2570 |
2850 |
2 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (Pink) |
2572 |
2851 |
2 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Lily Asiatic (White) |
2562 |
2849 |
3 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
Gypsophila (white) |
2569 |
2850 |
3 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (Peach) |
2573 |
2851 |
3 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Lily Asiatic(Pink) |
2563 |
2849 |
4 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
Chrysanthemum Spray (White) |
2568 |
2850 |
4 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (Orange) |
2567 |
2850 |
5 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (Cerise) |
2566 |
2850 |
6 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
Germini (White) |