Query time 0.00085
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 (16666,16941,16927,16665,16930,16799,16685,16660,26620,16928,16709,16798,16929,17379,16745,19139,16694,19079,16931,19134,16961,16712,19151,16655,16729,19294,16768,16845,26799,19220,16743,19069,18910,16049,18489,19187,19300,19203,18997,18896,17145,16967,16663,19254,16719,18825,19105,16805,19233,16746)) 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"
]
}
}
]
}
}
}