Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.72"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "2.26"
},
"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": 13,
"rows_produced_per_join": 2,
"filtered": "17.39",
"cost_info": {
"read_cost": "0.57",
"eval_cost": "0.23",
"prefix_cost": "1.88",
"data_read_per_join": "13K"
},
"used_columns": [
"banner_id",
"status",
"type",
"target",
"timestamp"
],
"attached_condition": "(`betaatif_store`.`cscart_banners`.`banner_id` in (16,17,18,19))"
}
},
{
"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": [
"betaatif_store.cscart_banners.banner_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.57",
"eval_cost": "0.23",
"prefix_cost": "2.67",
"data_read_per_join": "11K"
},
"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": [
"betaatif_store.cscart_banners.banner_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.57",
"eval_cost": "0.23",
"prefix_cost": "3.46",
"data_read_per_join": "36"
},
"used_columns": [
"banner_image_id",
"banner_id",
"lang_code"
],
"attached_condition": "<if>(found_match(cscart_banner_images), ((`betaatif_store`.`cscart_banners`.`type` <> 'G') or (`betaatif_store`.`cscart_banner_images`.`banner_image_id` is not null)), true)"
}
}
]
}
}
}