Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "39.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "12.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.79",
"eval_cost": "2.40",
"prefix_cost": "5.19",
"data_read_per_join": "384"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`goimagine`.`c`.`product_id` in (296840,296925,296815,296844,296874,296922,296924,296843,296902,296891,296863,296923,296850,296916,296813,296856,296854,296901,296878,296871,296867,296879,296918,296870)) 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": 11,
"filtered": "50.00",
"cost_info": {
"read_cost": "10.90",
"eval_cost": "1.20",
"prefix_cost": "18.49",
"data_read_per_join": "36K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.39",
"eval_cost": "1.20",
"prefix_cost": "27.07",
"data_read_per_join": "40K"
},
"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 |
| 296813 |
36139 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296815 |
36140 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296840 |
36162 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296843 |
36152 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Option |
Option |
|
|
|
|
|
| 296844 |
36166 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296891 |
36171 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296901 |
36180 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296918 |
36192 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296922 |
36188 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296923 |
36187 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296924 |
36186 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|