Query time 0.00313
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "88.74"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (6500,6530,7131)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "27.55",
"eval_cost": "3.10",
"prefix_cost": "30.65",
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.99",
"eval_cost": "3.10",
"prefix_cost": "57.74",
"data_read_per_join": "23K"
},
"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 |
| A |
29347 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B |
29348 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C |
29349 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| D |
29350 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| E |
29351 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| F |
29352 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| G |
29353 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| H |
29354 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| I |
29355 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| J |
29356 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| K |
29357 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| L |
29358 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| M |
29359 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| N |
29360 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| O |
29361 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| P |
29362 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Q |
29363 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| R |
29364 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| S |
29365 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| T |
29366 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| U |
29367 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| V |
29368 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| W |
29369 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| X |
29370 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Y |
29371 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Z |
29372 |
6500 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" |
29489 |
6530 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 18" |
29490 |
6530 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 20" |
29491 |
6530 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 24" |
29492 |
6530 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|