Query time 0.00025
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "vi_pages",
"access_type": "ref",
"possible_keys": ["PRIMARY", "parent_id"],
"key": "parent_id",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rows": 8,
"filtered": 100,
"attached_condition": "vi_pages.`status` = 'A' and vi_pages.page_type = 'B' and (vi_pages.usergroup_ids = '' or find_in_set(0,vi_pages.usergroup_ids) or find_in_set(1,vi_pages.usergroup_ids)) and (vi_pages.use_avail_period = 'N' or vi_pages.use_avail_period = 'Y' and vi_pages.avail_from_timestamp <= 1776420288 and (vi_pages.avail_till_timestamp >= 1776420288 or vi_pages.avail_till_timestamp = 0))"
}
},
{
"table": {
"table_name": "vi_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": ["devvipiriscom.vi_pages.page_id", "const", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vi_seo_names.`type` = 'a' and vi_seo_names.dispatch = '' and vi_seo_names.lang_code = 'en')",
"using_index": true
}
},
{
"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_pages.page_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "vi_ult_objects_sharing.share_object_id = vi_pages.page_id and vi_ult_objects_sharing.share_object_type = 'pages'",
"using_index": true
}
}
]
}
}
Result
| COUNT(DISTINCT(vi_pages.page_id)) |
| 8 |