Query time 0.00203
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 19,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_categories`.`id_path` like '301/%')",
"cost_info": {
"read_cost": "27.57",
"eval_cost": "0.04",
"prefix_cost": "27.61",
"data_read_per_join": "521"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"age_verification",
"age_limit",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`eshopuga_upgr_4122`.`cscart_categories`.`company_id` = 1) and ((`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`)) and (`eshopuga_upgr_4122`.`cscart_categories`.`status` = 'A'))"
}
},
{
"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": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.04",
"prefix_cost": "27.84",
"data_read_per_join": "647"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"age_warning_message"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.04",
"prefix_cost": "28.07",
"data_read_per_join": "329"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
seo_name |
seo_path |
ab__lc_catalog_image_control |
age_verification |
age_limit |
age_warning_message |
423 |
410 |
301/410/423 |
Beverages |
10 |
A |
1 |
beverages |
301/410 |
none |
N |
0 |
|
411 |
409 |
301/409/411 |
Burgers |
10 |
A |
1 |
burgers |
301/409 |
none |
N |
0 |
|
409 |
301 |
301/409 |
Food & More |
10 |
A |
1 |
food-and-more |
301 |
none |
N |
0 |
|
412 |
409 |
301/409/412 |
Chicken |
20 |
A |
1 |
chicken |
301/409 |
none |
N |
0 |
|
410 |
301 |
301/410 |
Groceries & More |
20 |
A |
1 |
groceries-and-more |
301 |
none |
N |
0 |
|
424 |
410 |
301/410/424 |
Meat, Sea Food & Poultry |
20 |
A |
1 |
meat-sea-food-and-poultry |
301/410 |
none |
N |
0 |
|
425 |
410 |
301/410/425 |
Fruits & Vegetables |
30 |
A |
1 |
fruits-and-vegetables |
301/410 |
none |
N |
0 |
|
452 |
301 |
301/452 |
More Shopping |
30 |
A |
1 |
more-shopping |
301 |
none |
N |
0 |
|
413 |
409 |
301/409/413 |
Pizzas |
30 |
A |
1 |
pizzas |
301/409 |
none |
N |
0 |
|
414 |
409 |
301/409/414 |
Bakery & Bread |
40 |
A |
1 |
bakery-and-bread |
301/409 |
none |
N |
0 |
|
427 |
410 |
301/410/427 |
Household Items |
50 |
A |
1 |
household-essentials |
301/410 |
none |
N |
0 |
|
428 |
410 |
301/410/428 |
Dairy & Eggs |
60 |
A |
1 |
diary-and-eggs |
301/410 |
none |
N |
0 |
|
450 |
410 |
301/410/450 |
General Items |
70 |
A |
1 |
general-items |
301/410 |
none |
N |
0 |
|
451 |
452 |
301/452/451 |
Stationary |
80 |
A |
1 |
stationary |
301/452 |
none |
N |
0 |
|
432 |
409 |
301/409/432 |
Snacks, Cereal & More |
100 |
A |
1 |
breakfast-and-cereal |
301/409 |
none |
N |
0 |
|
446 |
409 |
301/409/446 |
Raw Food |
110 |
A |
1 |
raw-food |
301/409 |
none |
N |
0 |
|
453 |
452 |
301/452/453 |
Juices & More |
160 |
A |
1 |
juices-and-more |
301/452 |
none |
N |
0 |
|
454 |
452 |
301/452/454 |
Newspapers/Magazines |
170 |
A |
1 |
newspapers-magazines |
301/452 |
none |
N |
0 |
|
455 |
452 |
301/452/455 |
Toiletry & Laundry |
180 |
A |
1 |
toiletry-and-laundry |
301/452 |
none |
N |
0 |
|