Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.68"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.70"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "index",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"rows_examined_per_scan": 170,
"rows_produced_per_join": 1,
"filtered": "1.00",
"using_index": true,
"cost_info": {
"read_cost": "17.62",
"eval_cost": "0.17",
"prefix_cost": "17.79",
"data_read_per_join": "272"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "((`gaseus`.`cscart_ult_objects_sharing`.`share_company_id` = 1) and (`gaseus`.`cscart_ult_objects_sharing`.`share_object_type` = 'product_options'))"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"gaseus.cscart_ult_objects_sharing.share_object_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"index_condition": "(`gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `gaseus`.`a`.`option_id`)",
"cost_info": {
"read_cost": "0.43",
"eval_cost": "0.17",
"prefix_cost": "18.38",
"data_read_per_join": "3K"
},
"used_columns": [
"option_id",
"product_id",
"company_id",
"option_type",
"regexp",
"required",
"multiupload",
"allowed_extensions",
"max_file_size",
"missing_variants_handling",
"status",
"position",
"value",
"yml2_type_options",
"yml2_option_param"
],
"attached_condition": "((`gaseus`.`a`.`product_id` in (3857,3858,3859,3860,2715,2716,2717,2718,2719,6303,6304,6305,6306,1500,1501,1502,1503,3726,5206,5207,5208,5209,6736,1490,1491,1492,1493,3724,5198,5199,5200,5201,6735,1495,1496,1497,1498,3164,3725,5202,5203,5204,5205,1485,1486,1487,1488,3163,3723,5194,5195,5196,5197,1429,1430,1431,1432,3161,3719,3720,5142,5143,5144,6730,6731,3158,3159,3160,2102,2039,1985,1472,1484,5613,1428,1478,1466,1873,1460,1449,3743,1454,1444,1422,1765,3734,1418,3136,2040,2041,2042,2043,2044,2045,2046,2047)) and (`gaseus`.`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": [
"gaseus.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.43",
"eval_cost": "0.17",
"prefix_cost": "18.98",
"data_read_per_join": "5K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}