Query time 0.00268
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.59"
},
"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": 37,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5457/5960/%')",
"cost_info": {
"read_cost": "52.66",
"eval_cost": "0.15",
"prefix_cost": "52.81",
"data_read_per_join": "4K"
},
"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.74",
"eval_cost": "0.15",
"prefix_cost": "53.70",
"data_read_per_join": "3K"
},
"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.74",
"eval_cost": "0.15",
"prefix_cost": "54.59",
"data_read_per_join": "1K"
},
"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 |
6342 |
6294 |
5457/5960/6294/6342 |
Binder Clips |
10 |
A |
0 |
0 |
0 |
binder-clips |
5457/5960/6294 |
6498 |
6449 |
5457/5960/6449/6498 |
Binder Paper |
10 |
A |
0 |
0 |
0 |
binder-paper |
5457/5960/6449 |
6414 |
6321 |
5457/5960/6321/6414 |
Correction Fluids |
10 |
A |
0 |
0 |
0 |
correction-fluids |
5457/5960/6321 |
6047 |
6015 |
5457/5960/6015/6047 |
Label Tapes & Refill Rolls |
10 |
A |
0 |
0 |
3 |
label-tapes-and-refill-rolls |
5457/5960/6015 |
6015 |
5960 |
5457/5960/6015 |
Labels & Tags |
10 |
A |
0 |
0 |
1 |
labels-and-tags |
5457/5960 |
6255 |
5960 |
5457/5960/6255 |
Office Tape |
10 |
A |
0 |
0 |
0 |
office-tape |
5457/5960 |
6321 |
5960 |
5457/5960/6321 |
Correction Fluids, Pens & Tapes |
20 |
A |
0 |
0 |
0 |
correction-fluids-pens-and-tapes |
5457/5960 |
6531 |
6449 |
5457/5960/6449/6531 |
Blank ID Cards |
20 |
A |
0 |
0 |
2 |
blank-id-cards |
5457/5960/6449 |
6435 |
6321 |
5457/5960/6321/6435 |
Correction Pens |
20 |
A |
0 |
0 |
0 |
correction-pens |
5457/5960/6321 |
6193 |
5960 |
5457/5960/6193 |
Laminating Film, Pouches & Sheets |
20 |
A |
0 |
0 |
8 |
laminating-film-pouches-and-sheets |
5457/5960 |
6418 |
6294 |
5457/5960/6294/6418 |
Paper Clips |
20 |
A |
0 |
0 |
0 |
paper-clips |
5457/5960/6294 |
6099 |
6015 |
5457/5960/6015/6099 |
Shipping Labels |
20 |
A |
0 |
0 |
0 |
shipping-labels |
5457/5960/6015 |
6555 |
6449 |
5457/5960/6449/6555 |
Business Cards |
30 |
A |
0 |
0 |
0 |
business-cards |
5457/5960/6449 |
6463 |
6321 |
5457/5960/6321/6463 |
Correction Tapes |
30 |
A |
0 |
0 |
0 |
correction-tapes |
5457/5960/6321 |
6229 |
5960 |
5457/5960/6229 |
Mounting Putty |
30 |
A |
0 |
0 |
0 |
mounting-putty |
5457/5960 |
6154 |
6015 |
5457/5960/6015/6154 |
Shipping Tags |
30 |
A |
0 |
0 |
0 |
shipping-tags |
5457/5960/6015 |
6513 |
6015 |
5457/5960/6015/6513 |
Address Labels |
40 |
A |
0 |
0 |
0 |
address-labels |
5457/5960/6015 |
6607 |
6449 |
5457/5960/6449/6607 |
Business Forms & Receipts |
40 |
A |
0 |
0 |
0 |
business-forms-and-receipts |
5457/5960/6449 |
6294 |
5960 |
5457/5960/6294 |
Paper Clips & Clamps |
40 |
A |
0 |
0 |
0 |
paper-clips-and-clamps |
5457/5960 |
6648 |
6449 |
5457/5960/6449/6648 |
Checks |
50 |
A |
0 |
0 |
0 |
checks |
5457/5960/6449 |
6299 |
5960 |
5457/5960/6299 |
Brass Fasteners |
50 |
A |
0 |
0 |
0 |
brass-fasteners |
5457/5960 |
6522 |
6015 |
5457/5960/6015/6522 |
Folder Tabs |
50 |
A |
0 |
0 |
0 |
folder-tabs |
5457/5960/6015 |
6693 |
6449 |
5457/5960/6449/6693 |
Cover Paper |
60 |
A |
0 |
0 |
1 |
cover-paper |
5457/5960/6449 |
6534 |
6015 |
5457/5960/6015/6534 |
Label Clips |
60 |
A |
0 |
0 |
0 |
label-clips |
5457/5960/6015 |
6449 |
5960 |
5457/5960/6449 |
Paper Products |
60 |
A |
0 |
0 |
41 |
paper-products |
5457/5960 |
6747 |
6449 |
5457/5960/6449/6747 |
Envelopes |
70 |
A |
0 |
0 |
0 |
envelopes |
5457/5960/6449 |
6485 |
5960 |
5457/5960/6485 |
Erasers |
70 |
A |
0 |
0 |
1 |
erasers |
5457/5960 |
6788 |
6449 |
5457/5960/6449/6788 |
Index Cards |
80 |
A |
0 |
0 |
1 |
index-cards |
5457/5960/6449 |
6815 |
6449 |
5457/5960/6449/6815 |
Notebooks & Notepads |
90 |
A |
0 |
0 |
6 |
notebooks-and-notepads |
5457/5960/6449 |
7015 |
5960 |
5457/5960/7015 |
Rubber Bands |
90 |
A |
0 |
0 |
0 |
rubber-bands |
5457/5960 |
6840 |
6449 |
5457/5960/6449/6840 |
Post Cards |
100 |
A |
0 |
0 |
4 |
post-cards |
5457/5960/6449 |
7074 |
5960 |
5457/5960/7074 |
Staples |
100 |
A |
0 |
0 |
0 |
staples |
5457/5960 |
6864 |
6449 |
5457/5960/6449/6864 |
Printer & Copier Paper |
110 |
A |
0 |
0 |
2 |
printer-and-copier-paper |
5457/5960/6449 |
7111 |
5960 |
5457/5960/7111 |
Tacks & Pushpins |
110 |
A |
0 |
0 |
0 |
tacks-and-pushpins |
5457/5960 |
6905 |
6449 |
5457/5960/6449/6905 |
Receipt & Adding Machine Paper Rolls |
120 |
A |
0 |
0 |
7 |
receipt-and-adding-machine-paper-rolls |
5457/5960/6449 |
6947 |
6449 |
5457/5960/6449/6947 |
Stationery |
130 |
A |
0 |
0 |
2 |
stationery |
5457/5960/6449 |
6977 |
6449 |
5457/5960/6449/6977 |
Sticky Notes |
140 |
A |
0 |
0 |
0 |
sticky-notes |
5457/5960/6449 |