Query time 0.00151
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "270.38"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "51.85"
},
"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": 97,
"rows_produced_per_join": 97,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "20.52",
"eval_cost": "19.40",
"prefix_cost": "39.92",
"data_read_per_join": "776"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`webmarco`.`c`.`product_id` in (431448,431258,431266,431299,431413,431449,431477,431485,430777,431499,431307,431347,431366,431348,430709,431388,430774,431221,431476,431363,431375,431228,431265,431418,431206,431317,430779,431404,431445,431486,431179,431491,431321,431400,431473,430710,431277,430668,431209,430670,431257,431293,431379,431370,431374,431443,431256,431320,431286,431390,431397,431462,431389,431268,431070,430783,431433,431306,431398,431432,431255,431305,431493,430763,431386,430775,430784,431444,431254,431490,435512,431016,431417,430967,431399,431272,431484,430776,431371,431416,431318,431216,431319,435513,431173,431461,431271,431372,435515,431373,431269,435514,430729,431267,435516,431270,435517)) 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": 51,
"filtered": "53.45",
"cost_info": {
"read_cost": "97.00",
"eval_cost": "10.37",
"prefix_cost": "156.32",
"data_read_per_join": "157K"
},
"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": 51,
"filtered": "100.00",
"cost_info": {
"read_cost": "51.85",
"eval_cost": "10.37",
"prefix_cost": "218.53",
"data_read_per_join": "176K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}