Query time 0.00050
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "vi_banner_descriptions.banner",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "vi_banners",
"access_type": "range",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["banner_id"],
"rows": 3,
"filtered": 100,
"index_condition": "vi_banners.banner_id in (40,41,42)",
"attached_condition": "vi_banners.`status` = 'A' and if(vi_banners.`type` not like 'abt__ut2','available',if(vi_banners.`type` like 'abt__ut2' and (vi_banners.abt__ut2_use_avail_period = 'N' or vi_banners.abt__ut2_use_avail_period = 'Y' and (vi_banners.abt__ut2_avail_from = 0 or vi_banners.abt__ut2_avail_from <= 1776414423) and (vi_banners.abt__ut2_avail_till = 0 or vi_banners.abt__ut2_avail_till >= 1776414423)),'available','not available')) = 'available' and (vi_banners.abt__ut2_usergroup_ids = '' or find_in_set(0,vi_banners.abt__ut2_usergroup_ids) or find_in_set(1,vi_banners.abt__ut2_usergroup_ids))"
}
},
{
"table": {
"table_name": "vi_banner_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["banner_id", "lang_code"],
"ref": ["devvipiriscom.vi_banners.banner_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vi_banner_descriptions.lang_code = 'es')"
}
},
{
"table": {
"table_name": "vi_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "159",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"ref": ["devvipiriscom.vi_banners.banner_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "vi_ult_objects_sharing.share_object_id = vi_banners.banner_id and vi_ult_objects_sharing.share_object_type = 'banners'",
"using_index": true
}
},
{
"table": {
"table_name": "vi_banner_images",
"access_type": "eq_ref",
"possible_keys": ["banner"],
"key": "banner",
"key_length": "9",
"used_key_parts": ["banner_id", "lang_code"],
"ref": ["devvipiriscom.vi_banners.banner_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vi_banners.`type` <> 'G' or vi_banner_images.banner_image_id is not null) and trigcond(vi_banner_images.lang_code = 'es')"
}
}
]
}
}
}
}
Result
| banner_id |
type |
target |
status |
timestamp |
banner |
description |
url |
banner_image_id |
company_id |
group_id |
| 40 |
abt__ut2 |
B |
A |
0 |
Main banner (Apple Vision) |
|
|
|
1 |
0 |
| 41 |
abt__ut2 |
B |
A |
0 |
Main banner (Mavic 3) |
|
|
|
1 |
0 |
| 42 |
abt__ut2 |
B |
A |
0 |
Main banner 3 (XBOX) |
|
|
|
1 |
0 |