Query time 0.00070
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 (2271,2336,2337,2338,2339,2412,2413,2414,2415,2416,2417,2418,2419,2420,2514,2515,2516,2517,2518,2604,2605,2606,2607,3840,3841,3842,3843,5867,5868,5869,5870,5871,5935,5936,5937,5938,5939,6012,6013,6014,6015,6016,6017,6018,6019,6020,6196,6197,6198,6199,6200,6732,2836,2837,2838,2839,2840,6422,6423,6424,6425,2937,2938,2939,2940,2941,6522,6523,6524,6525,2189,2190,2191,2192,2193,2194,2195,2196,2197,2720,2721,2722,2723,2769,2770,2771,2772,2773,2774,2775,2776,2777,2845,2846,2847,2848)) 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"
]
}
}
]
}
}
}