Query time 0.00704
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.87"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"c_status"
],
"rows_examined_per_scan": 59,
"rows_produced_per_join": 1,
"filtered": "2.00",
"cost_info": {
"read_cost": "6.52",
"eval_cost": "0.12",
"prefix_cost": "6.64",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"age_verification",
"age_limit",
"is_trash"
],
"attached_condition": "(((`wearethehelpful_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`wearethehelpful_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`wearethehelpful_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`wearethehelpful_scalesta_net`.`cscart_categories`.`status` = 'A') and (`wearethehelpful_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"wearethehelpful_scalesta_net.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.30",
"eval_cost": "0.12",
"prefix_cost": "7.05",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"age_warning_message"
]
}
},
{
"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_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.59",
"eval_cost": "0.24",
"prefix_cost": "7.88",
"data_read_per_join": "4K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
age_verification |
age_limit |
age_warning_message |
| 265 |
0 |
265 |
Feed + Nourish |
2 |
A |
0 |
0 |
feed-nourish |
|
N |
0 |
|
| 267 |
0 |
267 |
Family + Self Care |
3 |
A |
0 |
0 |
family-self-care |
|
N |
0 |
|
| 297 |
0 |
297 |
She Needs |
3 |
A |
0 |
0 |
she-needs |
|
N |
0 |
|
| 298 |
297 |
297/298 |
Feed + Nourish |
10 |
A |
0 |
0 |
feed-and-nourish |
297 |
N |
0 |
|
| 276 |
0 |
276 |
Motherhood |
10 |
A |
0 |
0 |
motherhood |
|
N |
0 |
|
| 268 |
265 |
265/268 |
Pre-made meals |
10 |
A |
0 |
0 |
pre-made-meals |
265 |
N |
0 |
|
| 288 |
276 |
276/288 |
Products |
10 |
A |
0 |
0 |
products |
276 |
N |
0 |
|
| 271 |
267 |
267/271 |
Self + Wellbeing |
10 |
A |
0 |
0 |
self-wellbeing |
267 |
N |
0 |
|
| 308 |
278 |
278/308 |
Confidence + Comfort |
20 |
A |
0 |
0 |
comfort-confidence |
278 |
N |
0 |
|
| 299 |
297 |
297/299 |
Connection |
20 |
A |
0 |
0 |
connection |
297 |
N |
0 |
|
| 282 |
267 |
267/282 |
Family + Kids |
20 |
A |
0 |
0 |
family |
267 |
N |
0 |
|
| 269 |
265 |
265/269 |
Fresh hampers |
20 |
A |
0 |
0 |
fresh-hampers |
265 |
N |
0 |
|
| 277 |
0 |
277 |
Grief + Loss |
20 |
A |
0 |
0 |
grief-loss |
|
N |
0 |
|
| 286 |
276 |
276/286 |
Services |
20 |
A |
0 |
0 |
services |
276 |
N |
0 |
|
| 294 |
276 |
276/294 |
Gift Bundles |
30 |
A |
0 |
0 |
bundles-for-her |
276 |
N |
0 |
|
| 295 |
277 |
277/295 |
Helpful Services |
30 |
A |
0 |
0 |
services |
277 |
N |
0 |
|
| 266 |
267 |
267/266 |
Home + Headspace |
30 |
A |
0 |
0 |
clean-organise |
267 |
N |
0 |
|
| 311 |
278 |
278/311 |
Home Services |
30 |
A |
0 |
0 |
home-services |
278 |
N |
0 |
|
| 278 |
0 |
278 |
Illness + Recovery |
30 |
A |
0 |
0 |
illness-recovery |
|
N |
0 |
|
| 270 |
265 |
265/270 |
Kids |
30 |
A |
0 |
0 |
kids |
265 |
N |
0 |
|
| 300 |
297 |
297/300 |
Self Care |
30 |
A |
0 |
0 |
self-care |
297 |
N |
0 |
|
| 292 |
276 |
276/292 |
Books - coming soon |
40 |
A |
0 |
0 |
books-coming-soon |
276 |
N |
0 |
|
| 301 |
297 |
297/301 |
Calm Home+Headspace |
40 |
A |
0 |
0 |
calm-home-headspace |
297 |
N |
0 |
|
| 317 |
277 |
277/317 |
Feed + Nourish |
40 |
A |
0 |
0 |
feed-nourish |
277 |
N |
0 |
|
| 322 |
278 |
278/322 |
Feed + Nourish |
40 |
A |
0 |
0 |
feed-nourish |
278 |
N |
0 |
|
| 305 |
265 |
265/305 |
Indulgent Treats |
40 |
A |
0 |
0 |
indulgent-treats |
265 |
N |
0 |
|
| 309 |
276 |
276/309 |
Confidence + Comfort |
50 |
A |
0 |
0 |
confidence-comfort-coming-soon |
276 |
N |
0 |
|
| 296 |
267 |
267/296 |
Experiences - Scotland |
50 |
A |
0 |
0 |
experiences-scotland |
267 |
N |
0 |
|
| 302 |
297 |
297/302 |
Movement |
50 |
A |
0 |
0 |
movement |
297 |
N |
0 |
|
| 323 |
278 |
278/323 |
Self Care + Ritual |
50 |
A |
0 |
0 |
self-care-ritual |
278 |
N |
0 |
|
| 318 |
277 |
277/318 |
Supporting a Family |
50 |
A |
0 |
0 |
help-with-the-kids |
277 |
N |
0 |
|
| 325 |
267 |
267/325 |
Food For All |
60 |
A |
0 |
0 |
food-for-all |
267 |
N |
0 |
|
| 303 |
297 |
297/303 |
Help with the Kids |
60 |
A |
0 |
0 |
help-with-the-kids |
297 |
N |
0 |
|
| 314 |
276 |
276/314 |
Nourishment |
60 |
A |
0 |
0 |
nourishment |
276 |
N |
0 |
|
| 319 |
277 |
277/319 |
Self Care + Ritual |
60 |
A |
0 |
0 |
self-care-ritual |
277 |
N |
0 |
|
| 310 |
297 |
297/310 |
Confidence+Comfort |
70 |
A |
0 |
0 |
confidence-comfort-coming-soon |
297 |
N |
0 |
|
| 326 |
267 |
267/326 |
Home Services |
70 |
A |
0 |
0 |
home-services |
267 |
N |
0 |
|
| 321 |
277 |
277/321 |
Comfort + Warmth |
80 |
A |
0 |
0 |
comfort-warmth |
277 |
N |
0 |
|