Query time 0.00137
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 (431328,339841,430740,430830,430961,430762,430882,431186,431239,431283,430735,430765,430786,430919,431410,431500,435510,339604,430686,431303,430643,431182,431219,431230,431279,431497,430711,431231,431274,431353,431405,431498,431060,430701,430732,430792,430659,430957,430965,431175,431337,431422,431495,431243,431290,431434,430954,431076,431166,430642,430983,431249,431260,431380,431105,431287,431304,431409,431480,431004,431311,431346,430814,430964,430966,431324,431458,430754,430759,430963,431015,431071,430781,430798,431002,431352,431419,431452,431453,381710,430750,431079,431408,431188,431217,431362,431394,431481,430705,431273,431407,430944,431009,431222,430669,430700,431001,431057,430699,430773)) 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"
]
}
}
]
}
}
}