Query time 0.00121
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "278.71"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "53.45"
},
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 100,
"rows_produced_per_join": 100,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "21.12",
"eval_cost": "20.00",
"prefix_cost": "41.12",
"data_read_per_join": "800"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`webmarco`.`c`.`product_id` in (339678,220178,431162,431128,339465,339786,339457,431132,339477,431099,431202,339541,339643,265042,339796,391798,392175,339489,430637,430639,431096,339699,339469,339797,392167,339458,339798,339606,339685,339482,431168,431141,339468,339453,431137,431153,431155,431130,431033,339730,430911,339731,430640,381703,431134,339478,431125,431154,431090,339794,431187,431067,431146,339463,431065,339709,431094,431048,339467,430767,430697,431104,339753,431050,339460,381725,430745,431124,431117,339696,339757,339464,339808,339787,339806,339805,392169,431157,431191,339810,431160,339707,339701,339704,430850,430681,430743,431084,431116,430908,431107,392166,339677,430998,339769,339814,339750,339758,430655,430744)) and (`webmarco`.`c`.`option_id` is not null))"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"webmarco.c.option_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 53,
"filtered": "53.45",
"cost_info": {
"read_cost": "100.00",
"eval_cost": "10.69",
"prefix_cost": "161.12",
"data_read_per_join": "162K"
},
"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"
],
"attached_condition": "((`webmarco`.`a`.`product_id` = 0) and (`webmarco`.`a`.`status` = 'A'))"
}
},
{
"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.c.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 53,
"filtered": "100.00",
"cost_info": {
"read_cost": "53.45",
"eval_cost": "10.69",
"prefix_cost": "225.26",
"data_read_per_join": "181K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}