Query time 0.00161
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "88.59"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.75"
},
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "index",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"product_id"
],
"key_length": "6",
"rows_examined_per_scan": 202,
"rows_produced_per_join": 34,
"filtered": "17.33",
"using_index": true,
"cost_info": {
"read_cost": "35.75",
"eval_cost": "7.00",
"prefix_cost": "42.75",
"data_read_per_join": "279"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`eshopuga_upgr_4122`.`c`.`product_id` in (432,1928,1973,429,1968,384,1963,1934,395,420,385,405,410,413,1970,417,1937,414,425,407,389,402,1972,388)) and (`eshopuga_upgr_4122`.`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": [
"eshopuga_upgr_4122.c.option_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "0.35",
"prefix_cost": "84.75",
"data_read_per_join": "4K"
},
"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"
],
"attached_condition": "((`eshopuga_upgr_4122`.`a`.`product_id` = 0) and (`eshopuga_upgr_4122`.`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": [
"eshopuga_upgr_4122.c.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.75",
"eval_cost": "0.35",
"prefix_cost": "86.85",
"data_read_per_join": "5K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message",
"internal_option_name"
]
}
}
]
}
}
}
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 |
option_name |
internal_option_name |
option_text |
description |
inner_hint |
incorrect_message |
comment |
1934 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1963 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1968 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1970 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1972 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1973 |
143 |
0 |
1 |
T |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Gift Card Text |
Gift Card Text |
|
|
|
|
Please type the message you wish to send to the Recipient |
1928 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1934 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1937 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1963 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1968 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1970 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1972 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1973 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1963 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1968 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1970 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1972 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1973 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|