Query time 0.00100
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "49.36"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "27.00"
},
"nested_loop": [
{
"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": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (125,127,258)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "10.21",
"eval_cost": "2.70",
"prefix_cost": "12.91",
"data_read_per_join": "1K"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status",
"note_required"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "22.36",
"data_read_per_join": "20K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
variant_name |
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
status |
note_required |
Red |
3483 |
125 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Extra Small (12-16" size) |
3514 |
127 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.0" |
9434 |
258 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
black |
3484 |
125 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Small (14-18" size) (Default for 1.0" to 1.25" Balls) |
3513 |
127 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.125" |
9435 |
258 |
2 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
white |
3485 |
125 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Regular (16-20" size) (Default for 1.375" to 2.5" balls)) |
3512 |
127 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.25" |
9436 |
258 |
3 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
blue |
3486 |
125 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Long (18-22" size) (Default for 2.375" to 3.0" balls) |
3511 |
127 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.375" |
9437 |
258 |
4 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
purple |
3487 |
125 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Extra Long (20-24" size) |
3510 |
127 |
5 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.5" |
9438 |
258 |
5 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
pink |
3488 |
125 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.625" |
9439 |
258 |
6 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
yellow |
3490 |
125 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.75" |
9440 |
258 |
7 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
green |
3492 |
125 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1.875" |
9441 |
258 |
8 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Translucent Blue |
3493 |
125 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.0" |
9442 |
258 |
9 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
chocolate Brown |
3491 |
125 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.125" |
9443 |
258 |
10 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pearl |
3494 |
125 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.25" |
9444 |
258 |
11 |
6.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
gold |
3489 |
125 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.375" |
9445 |
258 |
12 |
13.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Silver |
3495 |
125 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.5" |
9446 |
258 |
13 |
23.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Clear |
3496 |
125 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.625" |
9447 |
258 |
14 |
38.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.75" |
9448 |
258 |
15 |
43.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
2.875" |
9449 |
258 |
16 |
46.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
3.0" |
9450 |
258 |
17 |
53.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|