Query time 0.00086
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 (430994,430999,431345,430634,430645,430714,430862,430885,430887,430992,431338,430656,430738,430761,430865,431054,431316,430626,430870,431192,430708,430797,430853,431019,431326,431365,430677,430749,431061,430802,430846,430873,430881,431011,431024,431242,430960,430993,431039,431322,430836,430936,431003,431052,431395,431429,430704,430707,430905,430841,430969,431020,431022,431091,431248,431264,430810,431051,431315,431503,430652,430861,430940,430984,431113,431178,431193,431247,431487,431006,431200,431301,431426,431439,435509,430782,430837,431074,431339,430816,430926,431252,430641,430794,430968,431275,430788,430879,431171,431334,430661,430811,431098,431055,430742,430839,430675,430800,430805,430855)) 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"
]
}
}
]
}
}
}