Query time 0.00130
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.35"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.50"
},
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.02",
"eval_cost": "2.70",
"prefix_cost": "5.72",
"data_read_per_join": "432"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`goimagine`.`c`.`product_id` in (14703,13436,48589,48883,49528,49541,48554,49507,49504)) and (`goimagine`.`c`.`option_id` is not null))"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"goimagine.c.option_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "50.00",
"cost_info": {
"read_cost": "11.85",
"eval_cost": "1.35",
"prefix_cost": "20.27",
"data_read_per_join": "41K"
},
"used_columns": [
"option_id",
"product_id",
"company_id",
"option_type",
"inventory",
"regexp",
"required",
"multiupload",
"allowed_extensions",
"max_file_size",
"missing_variants_handling",
"status",
"position",
"value",
"google_export_name_option",
"etsy_prop_id"
],
"attached_condition": "((`goimagine`.`a`.`product_id` = 0) and (`goimagine`.`a`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.c.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.23",
"eval_cost": "1.35",
"prefix_cost": "29.86",
"data_read_per_join": "45K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}
Result
| cur_product_id |
option_id |
product_id |
company_id |
option_type |
inventory |
regexp |
required |
multiupload |
allowed_extensions |
max_file_size |
missing_variants_handling |
status |
position |
value |
google_export_name_option |
etsy_prop_id |
option_name |
internal_option_name |
option_text |
description |
inner_hint |
incorrect_message |
comment |
| 49541 |
1499 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 13436 |
1682 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 49528 |
58 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
|
|
Size |
Size |
|
|
|
|
|
| 14703 |
1718 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 49528 |
57 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
|
|
Color |
Color |
|
|
|
|
|
| 49507 |
1682 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 48554 |
1718 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 49504 |
1718 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 48589 |
1499 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
|
|
Style |
Style |
|
|
|
|
|
| 48883 |
73 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Longest Size Height/Width |
Size |
|
|
|
|
|
| 48883 |
72 |
0 |
7 |
T |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
One Name or Word |
Name |
|
|
|
|
|
| 48883 |
71 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 49541 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 49507 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 49504 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 13436 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 48589 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 48554 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 14703 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 48883 |
70 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Font Style |
Font Style |
|
|
|
|
|
| 49504 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 48589 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 49507 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 48554 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 14703 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 49541 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 13436 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|