Query time 0.00133
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 (431312,431450,431036,431276,431396,431014,431298,431414,431172,431233,431296,431442,381706,431207,431471,431180,431332,431479,431455,431213,430970,431496,430996,431059,431278,431413,431095,431189,431299,431075,431478,431282,431483,431351,431435,431436,431489,430728,431232,431391,431448,431214,431265,387048,431449,430986,431331,431323,431375,431379,431477,431492,431388,431437,431475,431485,381714,431261,431374,431476,431499,431221,431258,431266,435511,387053,431462,430709,431347,431441,431366,431320,431363,430774,431307,431257,430779,431179,431348,431404,431228,430668,430710,431317,431277,431473,431321,431418,431445,431206,431293,431209,431389,431486,431491,430670,431400,431390,431256,431443)) 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"
]
}
}
]
}
}
}