Query time 0.00080
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 (16333,8622,16092,16334,7917,16332,8030,15784,7347,7748,6560,7718,8039,31050,16088,10127,7357,6613,7295,7742,10360,7927,7353,7752,26922,15506,7960,7383,7948,8006,5627,7941,8016,7935,8008,7755,7987,8007,8046,8009,7990,7930,7915,8010,5617,7360,7713,7923,11310,5632)) 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"
]
}
}
]
}
}
}