Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "460.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "100.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": 100,
"rows_produced_per_join": 100,
"filtered": "100.00",
"index_condition": "((`webmarco`.`a`.`product_id` in (391789,265231,81619,285940,81632,271489,81662,339530,265039,265034,285937,271497,387095,81615,392212,285942,339446,271493,81639,271504,265258,81706,265031,339514,264987,265041,265261,265263,339551,271500,339521,286476,81649,264988,285945,271506,265244,265256,271496,271492,339501,151897,339499,285939,339495,339721,366887,392150,81622,392214,392215,265038,81652,271498,81697,339494,265242,339503,339531,224456,81693,339516,285938,81660,271510,359818,285943,271503,339539,285941,339447,339509,81669,271494,264989,285946,264990,271502,265232,265254,339636,285966,285970,114755,339637,339492,285968,339538,369244,271490,339506,265250,265001,265237,271505,339724,392179,339635,81628,339502)) and (`webmarco`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "220.01",
"eval_cost": "20.00",
"prefix_cost": "240.01",
"data_read_per_join": "303K"
},
"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": 100,
"filtered": "100.00",
"cost_info": {
"read_cost": "100.00",
"eval_cost": "20.00",
"prefix_cost": "360.01",
"data_read_per_join": "339K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}