Query time 0.00163
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.005965884,
"filesort": {
"sort_key": "tconnect_banner_descriptions.banner",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "tconnect_banners",
"access_type": "ref",
"possible_keys": ["PRIMARY", "status", "company_id"],
"key": "company_id",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["const"],
"loops": 1,
"rows": 1,
"cost": 0.002024411,
"filtered": 11.76470566,
"attached_condition": "tconnect_banners.banner_id in (52,51,53,50) and tconnect_banners.`status` = 'A' and if(tconnect_banners.from_date,tconnect_banners.from_date <= 1770878388,1) and if(tconnect_banners.to_date,tconnect_banners.to_date >= 1770878388,1) and (tconnect_banners.usergroup_ids = '' or find_in_set(0,tconnect_banners.usergroup_ids) or find_in_set(1,tconnect_banners.usergroup_ids)) and if(tconnect_banners.`type` not like 'abt__ut2','available',if(tconnect_banners.`type` like 'abt__ut2' and (tconnect_banners.abt__ut2_use_avail_period = 'N' or tconnect_banners.abt__ut2_use_avail_period = 'Y' and (tconnect_banners.abt__ut2_avail_from = 0 or tconnect_banners.abt__ut2_avail_from <= 1770878388) and (tconnect_banners.abt__ut2_avail_till = 0 or tconnect_banners.abt__ut2_avail_till >= 1770878388)),'available','not available')) = 'available' and (tconnect_banners.abt__ut2_usergroup_ids = '' or find_in_set(0,tconnect_banners.abt__ut2_usergroup_ids) or find_in_set(1,tconnect_banners.abt__ut2_usergroup_ids))"
}
},
{
"table": {
"table_name": "tconnect_banner_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["banner_id", "lang_code"],
"ref": ["tconnect.tconnect_banners.banner_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100,
"attached_condition": "trigcond(tconnect_banner_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tconnect_banner_images",
"access_type": "eq_ref",
"possible_keys": ["banner"],
"key": "banner",
"key_length": "9",
"used_key_parts": ["banner_id", "lang_code"],
"ref": ["tconnect.tconnect_banners.banner_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100,
"attached_condition": "trigcond(tconnect_banners.`type` <> 'G' or tconnect_banner_images.banner_image_id is not null) and trigcond(tconnect_banner_images.lang_code = 'en')"
}
}
]
}
}
}
}