Query time 0.00132
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 (394196,431190,430574,431092,431106,431147,430849,431162,431128,431099,431132,431202,430637,430639,431096,431168,431141,431153,431137,431155,431033,431130,430911,430640,431134,431125,431154,431090,431146,431065,431067,431187,431048,431094,430697,430767,431050,431104,430745,431124,431117,431191,431157,431160,430681,431116,430743,430850,430908,431084,431107,430998,431026,430655,430744,431100,431115,430915,430916,430636,430924,431195,430747,430803,431176,431203,430748,431204,431133,430648,431196,430823,431158,431199,431122,430903,430848,431139,430831,431150,430665,430696,431145,431102,430771,430907,430649,430646,430647,430912,430935,430638,430766,431097,431151,430821,430824,431359,430857,431201)) 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"
]
}
}
]
}
}
}