Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "10.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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.46",
"eval_cost": "2.10",
"prefix_cost": "4.56",
"data_read_per_join": "336"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`goimagine`.`c`.`product_id` in (97084,96323,96169,96301,96313,96165,97086,96337,96324,96176,97068,97089)) 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": 10,
"filtered": "50.00",
"cost_info": {
"read_cost": "9.96",
"eval_cost": "1.05",
"prefix_cost": "16.63",
"data_read_per_join": "31K"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.89",
"eval_cost": "1.05",
"prefix_cost": "24.57",
"data_read_per_join": "35K"
},
"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 |
| 96313 |
12341 |
0 |
2604 |
S |
Y |
|
Y |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Fragrance |
Poop Soap |
|
<p>Choose what fragrance you would like for your poop soap, and poop is not an option! </p> |
|
|
|
| 96337 |
12313 |
0 |
2604 |
S |
Y |
|
Y |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Color |
Mermaid Reflections |
|
<p>These hand painted mermaid tails have many color options. Choose from here or for a small fee, request a custom color or fragrance.</p> |
|
|
|
| 97068 |
12387 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Clay Face Bars |
|
|
|
|
|
| 97084 |
12387 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Clay Face Bars |
|
|
|
|
|
| 97084 |
12388 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Option 1 |
Clay Face Soap Multi-Pack |
|
|
|
|
|
| 97086 |
12387 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Clay Face Bars |
|
|
|
|
|
| 97086 |
12388 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Option 1 |
Clay Face Soap Multi-Pack |
|
|
|
|
|
| 97089 |
12387 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
1 |
|
not_option |
|
Style |
Clay Face Bars |
|
|
|
|
|
| 97084 |
12390 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Option 2 |
Clay Face Soap Multi-Pack |
|
|
|
|
|
| 97086 |
12390 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
2 |
|
not_option |
|
Option 2 |
Clay Face Soap Multi-Pack |
|
|
|
|
|
| 97084 |
12392 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Option 3 |
Clay Face Soap Multi-Pack |
|
|
|
|
|
| 97086 |
12392 |
0 |
2604 |
S |
Y |
|
N |
N |
|
0 |
M |
A |
3 |
|
not_option |
|
Option 3 |
Clay Face Soap Multi-Pack |
|
|
|
|
|