Query time 0.00147
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "289.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "63.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": 63,
"rows_produced_per_join": 63,
"filtered": "100.00",
"index_condition": "((`webmarco`.`a`.`product_id` in (415304,415296,415297,415303,415291,415290,415228,415289,415308,415240,427824,415310,415305,427787,415219,415294,415302,415311,415299,415242,415300,415224,415238,415217,415312,415211,427780,415241,415298,415307,415288,415232,427775,415293,427786,427782,427823,415295,415306,415235,427781,428031,427738,427829,415309,428033,428032,427821,427777,415292,427779,427778,427788,427826,427789,415213,435511,435512,435513,435515,435514,435516,435517)) and (`webmarco`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "138.61",
"eval_cost": "12.60",
"prefix_cost": "151.21",
"data_read_per_join": "191K"
},
"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"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 63,
"filtered": "100.00",
"cost_info": {
"read_cost": "63.00",
"eval_cost": "12.60",
"prefix_cost": "226.81",
"data_read_per_join": "214K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}