Query time 0.00193
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.00"
},
"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": 29,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5457/5845/%')",
"cost_info": {
"read_cost": "41.49",
"eval_cost": "0.12",
"prefix_cost": "41.61",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.58",
"eval_cost": "0.12",
"prefix_cost": "42.31",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"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": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.58",
"eval_cost": "0.12",
"prefix_cost": "43.00",
"data_read_per_join": "1006"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
product_count |
seo_name |
seo_path |
5862 |
5845 |
5457/5845/5862 |
Address Books |
10 |
A |
0 |
0 |
0 |
address-books |
5457/5845 |
5879 |
5870 |
5457/5845/5870/5879 |
Binder Accessories |
10 |
A |
0 |
0 |
0 |
binder-accessories |
5457/5845/5870 |
5894 |
5879 |
5457/5845/5870/5879/5894 |
Binder Rings |
10 |
A |
0 |
0 |
0 |
binder-rings |
5457/5845/5870/5879 |
6228 |
6208 |
5457/5845/6208/6228 |
Padfolios |
10 |
A |
0 |
0 |
0 |
padfolios |
5457/5845/6208 |
6122 |
6102 |
5457/5845/6102/6122 |
Pocket Folders |
10 |
A |
0 |
0 |
0 |
pocket-folders |
5457/5845/6102 |
5938 |
5870 |
5457/5845/5870/5938 |
Binders |
20 |
A |
0 |
0 |
0 |
binders |
5457/5845/5870 |
5870 |
5845 |
5457/5845/5870 |
Binding Supplies |
20 |
A |
0 |
0 |
0 |
binding-supplies |
5457/5845 |
5914 |
5879 |
5457/5845/5870/5879/5914 |
Index Dividers |
20 |
A |
0 |
0 |
0 |
index-dividers |
5457/5845/5870/5879 |
6253 |
6208 |
5457/5845/6208/6253 |
Portfolios |
20 |
A |
0 |
0 |
0 |
portfolios |
5457/5845/6208 |
6150 |
6102 |
5457/5845/6102/6150 |
Report Covers |
20 |
A |
0 |
0 |
0 |
report-covers |
5457/5845/6102 |
5947 |
5870 |
5457/5845/5870/5947 |
Binding Combs & Spines |
30 |
A |
0 |
0 |
0 |
binding-combs-and-spines |
5457/5845/5870 |
5984 |
5845 |
5457/5845/5984 |
Business Card Books |
30 |
A |
0 |
0 |
0 |
business-card-books |
5457/5845 |
5924 |
5879 |
5457/5845/5870/5879/5924 |
Sheet Protectors |
30 |
A |
0 |
0 |
0 |
sheet-protectors |
5457/5845/5870/5879 |
5958 |
5870 |
5457/5845/5870/5958 |
Binding Machines |
40 |
A |
0 |
0 |
0 |
binding-machines |
5457/5845/5870 |
5994 |
5845 |
5457/5845/5994 |
Business Card Stands |
40 |
A |
0 |
0 |
0 |
business-card-stands |
5457/5845 |
6002 |
5845 |
5457/5845/6002 |
CD/DVD Cases & Organizers |
50 |
A |
0 |
0 |
0 |
cd-dvd-cases-and-organizers |
5457/5845 |
6013 |
5845 |
5457/5845/6013 |
Calendars, Organizers & Planners |
60 |
A |
0 |
0 |
0 |
calendars-organizers-and-planners |
5457/5845 |
6027 |
5845 |
5457/5845/6027 |
Card Files |
70 |
A |
0 |
0 |
0 |
card-files |
5457/5845 |
6035 |
5845 |
5457/5845/6035 |
Card Sleeves |
80 |
A |
0 |
0 |
0 |
card-sleeves |
5457/5845 |
6046 |
5845 |
5457/5845/6046 |
Cash Boxes |
90 |
A |
0 |
0 |
0 |
cash-boxes |
5457/5845 |
6061 |
5845 |
5457/5845/6061 |
Desk Organizers |
100 |
A |
0 |
0 |
2 |
desk-organizers |
5457/5845 |
6072 |
5845 |
5457/5845/6072 |
File Boxes |
110 |
A |
0 |
0 |
3 |
file-boxes |
5457/5845 |
6090 |
5845 |
5457/5845/6090 |
File Folders |
120 |
A |
0 |
0 |
0 |
file-folders |
5457/5845 |
6102 |
5845 |
5457/5845/6102 |
Folders & Report Covers |
130 |
A |
0 |
0 |
0 |
folders-and-report-covers |
5457/5845 |
6167 |
5845 |
5457/5845/6167 |
Greeting Card Organizers |
140 |
A |
0 |
0 |
0 |
greeting-card-organizers |
5457/5845 |
6180 |
5845 |
5457/5845/6180 |
Mail Sorters |
150 |
A |
0 |
0 |
0 |
mail-sorters |
5457/5845 |
6192 |
5845 |
5457/5845/6192 |
Pen & Pencil Cases |
160 |
A |
0 |
0 |
7 |
pen-and-pencil-cases |
5457/5845 |
6208 |
5845 |
5457/5845/6208 |
Portfolios & Padfolios |
170 |
A |
0 |
0 |
0 |
portfolios-and-padfolios |
5457/5845 |
6275 |
5845 |
5457/5845/6275 |
Recipe Card Boxes |
180 |
A |
0 |
0 |
0 |
recipe-card-boxes |
5457/5845 |