Query time 0.00388
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.22"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "19.00"
},
"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": 38,
"rows_produced_per_join": 38,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.15",
"eval_cost": "3.80",
"prefix_cost": "7.95",
"data_read_per_join": "608"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`goimagine`.`c`.`product_id` in (374904,380186,409224,410534,421866,423630,430335,448259,454871,478632,490509,310980)) 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": 18,
"filtered": "50.00",
"cost_info": {
"read_cost": "17.26",
"eval_cost": "1.90",
"prefix_cost": "29.01",
"data_read_per_join": "57K"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.32",
"eval_cost": "1.90",
"prefix_cost": "43.23",
"data_read_per_join": "64K"
},
"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 |
| 410534 |
6615 |
0 |
7 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Monogram Text |
Monogram Text |
|
|
|
|
|
| 448259 |
6615 |
0 |
7 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Monogram Text |
Monogram Text |
|
|
|
|
|
| 448259 |
1175 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 430335 |
6615 |
0 |
7 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Monogram Text |
Monogram Text |
|
|
|
|
|
| 430335 |
1175 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 454871 |
7227 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Size = Longest Length |
Size = Longest Length |
|
|
|
|
|
| 421866 |
7226 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Size = Longest Length |
Size = Longest Length |
|
|
|
|
|
| 410534 |
1175 |
0 |
7 |
S |
N |
|
Y |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 409224 |
7221 |
0 |
7 |
I |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Add State You'd Like Here |
Add State You'd Ike Here |
|
|
|
|
|
| 490509 |
7228 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Length = Longest Size |
Length = Longest Size |
|
|
|
|
|
| 380186 |
7227 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Size = Longest Length |
Size = Longest Length |
|
|
|
|
|
| 478632 |
7228 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Length = Longest Size |
Length = Longest Size |
|
|
|
|
|
| 374904 |
7228 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Length = Longest Size |
Length = Longest Size |
|
|
|
|
|
| 490509 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 478632 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 454871 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 421866 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 380186 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 374904 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 423630 |
6258 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Style |
|
|
|
|
|
| 310980 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 448259 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 430335 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 423630 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 410534 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 409224 |
48 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Longest Size Height/Width |
WIDTH |
|
|
|
|
|
| 490509 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 478632 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 423630 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 454871 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 448259 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 430335 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 421866 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 410534 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 409224 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 380186 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 374904 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|
| 310980 |
49 |
0 |
7 |
S |
N |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Color |
Color |
|
|
|
|
|