Query time 0.00157
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "99.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "2.15"
},
"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": 42,
"filtered": "21.29",
"using_index": true,
"cost_info": {
"read_cost": "34.15",
"eval_cost": "8.60",
"prefix_cost": "42.75",
"data_read_per_join": "343"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`eshopuga_upgr_4122`.`c`.`product_id` in (1969,398,1964,434,383,1927,435,419,403,324,1965,440,1966,431,1928,1973,1968,1963,327,1934,2000,2001,385,405)) 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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "43.00",
"eval_cost": "0.43",
"prefix_cost": "94.35",
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.15",
"eval_cost": "0.43",
"prefix_cost": "96.93",
"data_read_per_join": "7K"
},
"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 |
1964 |
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 |
1965 |
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 |
1966 |
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 |
1969 |
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 |
2000 |
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 |
2001 |
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 |
1964 |
329 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
0 |
|
Glass Flower Vase |
Glass Flower Vase |
|
|
|
|
|
1927 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
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 |
|
|
|
|
|
1963 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1964 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1965 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
1966 |
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 |
|
|
|
|
|
1969 |
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 |
|
|
|
|
|
2000 |
332 |
0 |
1 |
C |
N |
|
N |
N |
|
0 |
M |
A |
1 |
|
Gift Bag |
Gift Bag |
|
|
|
|
|
2001 |
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 |
|
|
|
|
|
1964 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1965 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
1966 |
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 |
|
|
|
|
|
1969 |
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 |
|
|
|
|
|
2000 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|
2001 |
333 |
0 |
1 |
I |
N |
|
Y |
N |
|
0 |
M |
A |
2 |
|
Delivery Date |
Delivery Date |
|
|
|
|
|