Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "76.31"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (9798,9799,9801,9419)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "24.50",
"eval_cost": "2.60",
"prefix_cost": "27.10",
"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",
"etsy_variant_id"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.61",
"eval_cost": "2.60",
"prefix_cost": "50.31",
"data_read_per_join": "19K"
},
"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 |
etsy_variant_id |
| blue with eyelashes |
41602 |
9419 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Name embr. on foot |
43160 |
9798 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Girl footprints |
43161 |
9799 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| blue without eyelashes |
41603 |
9419 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Message HTV |
43156 |
9798 |
2 |
7.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Boy footprints |
43162 |
9799 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| brown with eyelashes |
41604 |
9419 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Baby Stats HTV |
43159 |
9798 |
3 |
7.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Girl owl |
43163 |
9799 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| brown without eyelashes |
41605 |
9419 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Message embroidery |
43157 |
9798 |
4 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Boy owl |
43164 |
9799 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| green with eyelashes |
41606 |
9419 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Baby Stat Embroidery |
43158 |
9798 |
5 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Girl Bear |
43165 |
9799 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| green without eyelashes |
41607 |
9419 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Boy bear |
43166 |
9799 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| No personalization |
45376 |
9798 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Girl elephant |
43167 |
9799 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Boy elephant |
43168 |
9799 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Train |
43169 |
9799 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dinosaur |
43170 |
9799 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cupcake |
43171 |
9799 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Other |
43172 |
9799 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| None |
45377 |
9799 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|