Query time 0.00109
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "175.27"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "66.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": 66,
"rows_produced_per_join": 66,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`product_id` in (187599,79185,79358,82647,82677,82659,82664,82650,79359,82662,80067,82658,189127,191122,197476,82675,83702,82663,199702,188170,187601,191601,188620,201635,82665,191770,82674,210711,203577,82670,169289,153234,259182,259310,269097,247890,269118,247892,269100,269096,269091,269090,247902,259643,269113,247897,258388,269098,269093,269116,259598,269111,269107,269108,259655,269094,269095,204373,283319,292893,283328,284130,306484,269110,306494,269106)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "57.79",
"eval_cost": "6.60",
"prefix_cost": "64.39",
"data_read_per_join": "200K"
},
"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",
"etsy_prop_id"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 66,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.28",
"eval_cost": "6.60",
"prefix_cost": "109.27",
"data_read_per_join": "224K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}