Query time 0.00047
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "0.10"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_pages",
"access_type": "range",
"possible_keys": [
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 4,
"rows_produced_per_join": 0,
"filtered": "1.25",
"index_condition": "(`wearethehelpful_scalesta_net`.`cscart_pages`.`id_path` like '73/%')",
"cost_info": {
"read_cost": "2.05",
"eval_cost": "0.01",
"prefix_cost": "2.06",
"data_read_per_join": "126"
},
"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`.`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.01",
"eval_cost": "0.01",
"prefix_cost": "2.08",
"data_read_per_join": "193"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.01",
"prefix_cost": "2.11",
"data_read_per_join": "173"
},
"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 |
| 76 |
0 |
73 |
73/76 |
A |
B |
0 |
1722207600 |
0 |
|
0 |
N |
0 |
0 |
|
Real Gifts: This is Incense |
real-gifts-this-is-incense |
73 |
| 81 |
0 |
73 |
73/81 |
A |
B |
0 |
1722207600 |
0 |
|
0 |
N |
0 |
0 |
|
Real Gifts: Pots for Tots |
real-gifts-pots-for-tots |
73 |
| 74 |
0 |
73 |
73/74 |
A |
B |
0 |
1719529200 |
0 |
|
0 |
N |
0 |
0 |
activity |
Real Gifts: FieldGoods |
real-gifts-field-goods |
73 |