Query time 0.00198
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "119.29"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "34.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": 69,
"rows_produced_per_join": 69,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.25",
"eval_cost": "6.90",
"prefix_cost": "14.15",
"data_read_per_join": "1K"
},
"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,296855,296866,296896,296812,296865,296898,296877,296920,296889,296921,296926,296849,296814,296859,296873,296839,296893,296841,296919,296881,296861,296883,296838,296853,296899,296846,296858,296894,296869,296892,296845,296895,296864,296917,296851,296862,296882,296900,296875,296876,296906,296860,296868,296857,296842)) 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": 34,
"filtered": "50.00",
"cost_info": {
"read_cost": "36.61",
"eval_cost": "3.45",
"prefix_cost": "57.66",
"data_read_per_join": "104K"
},
"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": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.68",
"eval_cost": "3.45",
"prefix_cost": "84.79",
"data_read_per_join": "117K"
},
"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 |
| 296894 |
36174 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296926 |
36184 |
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 |
|
|
|
|
|
| 296923 |
36187 |
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 |
|
|
|
|
|
| 296921 |
36189 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296920 |
36190 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296919 |
36191 |
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 |
|
|
|
|
|
| 296917 |
36193 |
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 |
|
|
|
|
|
| 296900 |
36179 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296899 |
36178 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296898 |
36177 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296896 |
36176 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296895 |
36175 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296813 |
36139 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296893 |
36173 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296892 |
36172 |
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 |
|
|
|
|
|
| 296889 |
36170 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296883 |
36168 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296881 |
36167 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
type |
type |
|
|
|
|
|
| 296855 |
36165 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296849 |
36164 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296845 |
36161 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|
| 296844 |
36166 |
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 |
|
|
|
|
|
| 296841 |
36163 |
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 |
|
|
|
|
|
| 296815 |
36140 |
0 |
9593 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
0 |
|
not_option |
|
Type |
Type |
|
|
|
|
|