Query time 0.00049
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "8.35"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_product_options",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 22,
"rows_produced_per_join": 16,
"filtered": "72.73",
"cost_info": {
"read_cost": "1.15",
"eval_cost": "1.60",
"prefix_cost": "2.75",
"data_read_per_join": "37K"
},
"used_columns": [
"option_id",
"option_type"
],
"attached_condition": "(`gaseus`.`cscart_product_options`.`option_id` in (83,84,85,64,65,66,67,68,69,70,71,72,73,78,80,81))"
}
},
{
"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": [
"gaseus.cscart_product_options.option_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "8.35",
"data_read_per_join": "2K"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `gaseus`.`cscart_product_options`.`option_id`)"
}
}
]
}
}
Result
| option_id |
option_type |
| 85 |
S |
| 84 |
S |
| 83 |
S |
| 81 |
S |
| 72 |
S |
| 71 |
S |
| 70 |
S |
| 69 |
S |
| 68 |
S |
| 64 |
S |
| 73 |
R |
| 78 |
S |
| 80 |
S |
| 65 |
S |
| 66 |
S |
| 67 |
S |