Query time 0.00147
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.72"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.67"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_banners",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "66.67",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.07",
"prefix_cost": "0.35",
"data_read_per_join": "528"
},
"used_columns": [
"banner_id",
"status",
"type",
"target",
"timestamp",
"company_id"
],
"attached_condition": "(`gaseus`.`cscart_banners`.`banner_id` in (24,23))"
}
},
{
"table": {
"table_name": "cscart_banner_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"banner_id",
"lang_code"
],
"key_length": "9",
"ref": [
"gaseus.cscart_banners.banner_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.07",
"prefix_cost": "0.58",
"data_read_per_join": "1K"
},
"used_columns": [
"banner_id",
"banner",
"url",
"description",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_banner_images",
"access_type": "eq_ref",
"possible_keys": [
"banner"
],
"key": "banner",
"used_key_parts": [
"banner_id",
"lang_code"
],
"key_length": "9",
"ref": [
"gaseus.cscart_banners.banner_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.07",
"prefix_cost": "0.82",
"data_read_per_join": "10"
},
"used_columns": [
"banner_image_id",
"banner_id",
"lang_code"
],
"attached_condition": "<if>(found_match(cscart_banner_images), ((`gaseus`.`cscart_banners`.`type` <> 'G') or (`gaseus`.`cscart_banner_images`.`banner_image_id` is not null)), true)"
}
},
{
"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_banners.banner_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.07",
"prefix_cost": "1.05",
"data_read_per_join": "106"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `gaseus`.`cscart_banners`.`banner_id`)"
}
}
]
}
}
}
Result
| banner_id |
type |
target |
status |
timestamp |
banner |
description |
url |
banner_image_id |
company_id |
| 24 |
G |
T |
A |
1742425200 |
Gastech |
|
|
70 |
1 |