Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "102.51"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "50.00"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": [
"c_status"
],
"key": "c_status",
"used_key_parts": [
"product_id",
"status"
],
"key_length": "6",
"rows_examined_per_scan": 50,
"rows_produced_per_join": 50,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`product_id` in (8408,8409,10177,8405,8406,9943,16031,8407,8649,36024,36025,26577,12085,26543,26539,31010,39503,12086,40547,40112,40580,12088,40714,33996,12087,26542,36036,33791,40836,40232,40208,40469,40616,26537,40738,36041,40374,40088,40787,40679,40516,40350,34008,40812,40762,40160,40326,40422,40136,40302)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "30.01",
"eval_cost": "5.00",
"prefix_cost": "35.01",
"data_read_per_join": "114K"
},
"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": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.50",
"eval_cost": "5.00",
"prefix_cost": "52.51",
"data_read_per_join": "169K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}