Query time 0.00147
JSON explain
{
"query_block": {
"select_id": 1,
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_pages.`timestamp` desc",
"table": {
"table_name": "cscart_pages",
"access_type": "ref",
"possible_keys": ["PRIMARY", "parent_id"],
"key": "parent_id",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rows": 28,
"filtered": 100,
"attached_condition": "cscart_pages.parent_id <=> 101 and cscart_pages.`status` = 'A' and cscart_pages.page_type = 'B' and (cscart_pages.usergroup_ids = '' or find_in_set(0,cscart_pages.usergroup_ids) or find_in_set(1,cscart_pages.usergroup_ids)) and (cscart_pages.use_avail_period = 'N' or cscart_pages.use_avail_period = 'Y' and cscart_pages.avail_from_timestamp <= 1787672332 and (cscart_pages.avail_till_timestamp >= 1787672332 or cscart_pages.avail_till_timestamp = 0))"
}
}
},
"table": {
"table_name": "cscart_page_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["page_id", "lang_code"],
"ref": ["orbit_cscart_orbit_cscart.cscart_pages.page_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_page_descriptions.lang_code = 'ru')"
},
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"orbit_cscart_orbit_cscart.cscart_pages.page_id",
"const",
"const",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'a' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'ru')"
},
"table": {
"table_name": "cscart_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": ["orbit_cscart_orbit_cscart.cscart_pages.page_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_ult_objects_sharing.share_object_id = cscart_pages.page_id and cscart_ult_objects_sharing.share_object_type = 'pages'",
"using_index": true
},
"table": {
"table_name": "cscart_banners",
"access_type": "ref",
"possible_keys": ["status"],
"key": "status",
"key_length": "3",
"used_key_parts": ["status"],
"ref": ["const"],
"rows": 19,
"filtered": 100,
"attached_condition": "trigcond(cscart_banners.abt__yt_page_id = cscart_pages.page_id and cscart_banners.abt__yt_page_id > 0 and cscart_banners.`status` = 'A' and cscart_banners.abt__yt_data_type = 'blog' and (cscart_banners.abt__yt_youtube_use = 'Y' or cscart_banners.abt__yt_product_list_use = 'Y' and trim(cscart_banners.abt__yt_product_list) <> '') and (cscart_banners.abt__yt_use_avail_period = 'N' or cscart_banners.abt__yt_use_avail_period = 'Y' and cscart_banners.abt__yt_avail_from <= 1787672332 and cscart_banners.abt__yt_avail_till >= 1787672332))"
},
"table": {
"table_name": "cscart_banner_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["banner_id", "lang_code"],
"ref": ["orbit_cscart_orbit_cscart.cscart_banners.banner_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_banner_descriptions.lang_code = 'ru' and trigcond(cscart_banners.banner_id is not null))"
}
}
}
Result
| page_id |
company_id |
parent_id |
id_path |
status |
page_type |
position |
timestamp |
usergroup_ids |
localization |
new_window |
use_avail_period |
avail_from_timestamp |
avail_till_timestamp |
facebook_obj_type |
competitions |
competition_finish |
page |
seo_name |
seo_path |
abt__yt_youtube_id |
abt__yt_product_list |
| 133 |
1 |
101 |
101/133 |
A |
B |
0 |
1588194000 |
0 |
|
0 |
N |
0 |
0 |
|
N |
1587934800 |
Для чего стоит купить скороварку |
skorovarka-kupit |
101 |
|
|
| 134 |
1 |
101 |
101/134 |
A |
B |
0 |
1588194000 |
0 |
|
0 |
N |
0 |
0 |
|
N |
1587934800 |
Защищаемся от вредных излучений |
zashita-ot-vrednikh-izlucheniy |
101 |
|
|
| 132 |
1 |
101 |
101/132 |
A |
B |
0 |
1588107600 |
0 |
|
0 |
N |
0 |
0 |
|
N |
1587934800 |
Чем полезно маточное молочко |
chem-polezno-matochnoe-molochko |
101 |
|
|