Query time 0.00093
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.40"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "c_status",
"used_key_parts": [
"product_id",
"status"
],
"key_length": "6",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "((`danishecarter_25_march`.`a`.`product_id` <=> 0) and (`danishecarter_25_march`.`a`.`status` <=> 'A'))",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "1.80",
"prefix_cost": "3.80",
"data_read_per_join": "20K"
},
"used_columns": [
"option_id",
"product_id",
"company_id",
"option_type",
"regexp",
"required",
"multiupload",
"allowed_extensions",
"max_file_size",
"missing_variants_handling",
"status",
"position",
"value"
]
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"danishecarter_25_march.a.option_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "14.60",
"data_read_per_join": "72"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "(`danishecarter_25_march`.`c`.`product_id` in (148,180,18,16,4,5,23,24,1,22,149,190,189,245,238,239,242,243,59,58,60,172,134,135,168,167,169,42,39,40,37,74,73,71,75,72,70,156,175,43,76,56,57,30,246,173,67,25,154,53,52,161,165,166,86,106,105,101,33,32,163,155,55,69,184,183,133,132,125,120,146,147,145,117,113,157,68,29,6,8,14,9,10,19,21,50,51,49,48,54,153,164,248,65,64,63))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"danishecarter_25_march.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "25.40",
"data_read_per_join": "30K"
},
"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 |
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 |
248 |
20 |
0 |
1 |
C |
|
N |
N |
|
0 |
M |
A |
0 |
|
Additional controller |
Additional controller |
|
|
|
|
|
248 |
25 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
0 |
|
Choose a free game |
X-box |
|
|
|
|
|