Query time 0.00102
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "230.01"
},
"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": "((`webmarco`.`a`.`product_id` in (431070,431433,431397,431370,430783,430775,431432,431286,431306,431490,431268,431493,431398,431444,431386,431305,430763,431255,430967,431254,431399,431484,435512,430776,430784,431016,431173,431216,431318,431417,431371,431416,435513,430729,431272,431319,431372,431461,431373,431271,435515,435514,431267,431269,435516,431270,387051,435517,435518,432250)) and (`webmarco`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "110.01",
"eval_cost": "10.00",
"prefix_cost": "120.01",
"data_read_per_join": "151K"
},
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "180.01",
"data_read_per_join": "169K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}