Query time 0.00114
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 (431132,339796,391798,339457,265042,339477,339541,431162,339700,339811,431202,339489,392172,431099,431128,339458,339623,339469,431155,430639,339453,339797,339798,339606,392167,431141,339699,339643,431130,431168,339482,339685,431153,431154,339730,431096,431137,339731,392175,339463,381703,339709,430637,431125,431124,339478,381725,339460,430911,339468,431094,431146,430640,431134,339467,430745,431048,431187,339753,431033,339810,339808,339696,430767,339805,431067,339757,339787,339701,339806,430697,431191,339794,431090,431117,339464,431065,431104,431107,431157,431116,381701,392166,381687,431204,339452,431196,431084,339752,339750,339695,339814,430655,430744,430850,431203,431160,431176,431100,339707)) 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"
]
}
}
]
}
}
}