Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.11"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "2.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_pages",
"access_type": "ALL",
"possible_keys": [
"id_path"
],
"rows_examined_per_scan": 123,
"rows_produced_per_join": 0,
"filtered": "0.81",
"cost_info": {
"read_cost": "12.96",
"eval_cost": "0.10",
"prefix_cost": "13.06",
"data_read_per_join": "2K"
},
"used_columns": [
"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"
],
"attached_condition": "((`wearethehelpful_scalesta_net`.`cscart_pages`.`id_path` like '7/%') and (`wearethehelpful_scalesta_net`.`cscart_pages`.`status` = 'A') and (`wearethehelpful_scalesta_net`.`cscart_pages`.`page_type` = 'B') and ((`wearethehelpful_scalesta_net`.`cscart_pages`.`usergroup_ids` = '') or (0 <> find_in_set(0,`wearethehelpful_scalesta_net`.`cscart_pages`.`usergroup_ids`)) or (0 <> find_in_set(1,`wearethehelpful_scalesta_net`.`cscart_pages`.`usergroup_ids`))) and ((`wearethehelpful_scalesta_net`.`cscart_pages`.`use_avail_period` = 'N') or ((`wearethehelpful_scalesta_net`.`cscart_pages`.`use_avail_period` = 'Y') and (`wearethehelpful_scalesta_net`.`cscart_pages`.`avail_from_timestamp` <= 1771291313) and ((`wearethehelpful_scalesta_net`.`cscart_pages`.`avail_till_timestamp` >= 1771291313) or (`wearethehelpful_scalesta_net`.`cscart_pages`.`avail_till_timestamp` = 0)))))"
}
},
{
"table": {
"table_name": "cscart_page_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"page_id",
"lang_code"
],
"key_length": "9",
"ref": [
"wearethehelpful_scalesta_net.cscart_pages.page_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "13.41",
"data_read_per_join": "3K"
},
"used_columns": [
"page_id",
"lang_code",
"page"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"wearethehelpful_scalesta_net.cscart_pages.page_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.20",
"prefix_cost": "14.11",
"data_read_per_join": "3K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
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 |
page |
seo_name |
seo_path |
| 150 |
0 |
7 |
7/150 |
A |
B |
0 |
1770768000 |
0 |
|
0 |
N |
0 |
0 |
|
Welcome TONIC London: Thoughtful Support for Treatment & Recovery |
welcome-tonic-london-thoughtful-support-for-treatment-and-recovery |
7 |
| 148 |
0 |
7 |
7/148 |
A |
B |
0 |
1765152000 |
0 |
|
0 |
N |
0 |
0 |
|
“Things Will Calm Down Soon” - And Other Crazy Stories We Tell Ourselves |
things-will-calm-down-soon-and-other-crazy-stories-we-tell-ourselves |
7 |
| 146 |
0 |
7 |
7/146 |
A |
B |
0 |
1761523200 |
0 |
|
0 |
N |
0 |
0 |
|
Welcome, Anara Skincare (A Brand We’re So Excited About) |
welcome-anara-skincare-a-brand-were-so-excited-about |
7 |