Query time 0.00076
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.46"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_product_options",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"rows_examined_per_scan": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`test2_gaseus`.`cscart_product_options`.`option_id` in (83,90,64,91,65,66,67,84,85))",
"cost_info": {
"read_cost": "5.41",
"eval_cost": "0.90",
"prefix_cost": "6.31",
"data_read_per_join": "21K"
},
"used_columns": [
"option_id",
"option_type"
]
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"test2_gaseus.cscart_product_options.option_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.90",
"prefix_cost": "9.46",
"data_read_per_join": "1K"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`test2_gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `test2_gaseus`.`cscart_product_options`.`option_id`)"
}
}
]
}
}
Result
| type |
option_id |
| S |
64 |
| S |
65 |
| S |
66 |
| S |
67 |
| S |
83 |
| S |
84 |
| S |
85 |
| S |
90 |
| S |
91 |