Query time 0.00374
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.90"
},
"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": 31,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '6473/7627/%')",
"cost_info": {
"read_cost": "44.29",
"eval_cost": "0.12",
"prefix_cost": "44.41",
"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.62",
"eval_cost": "0.12",
"prefix_cost": "45.15",
"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.62",
"eval_cost": "0.12",
"prefix_cost": "45.90",
"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 |
7685 |
7627 |
6473/7627/7685 |
Armatures, Rotors & Stators |
10 |
A |
0 |
0 |
0 |
armatures-rotors-and-stators-en |
6473/7627 |
7740 |
7689 |
6473/7627/7689/7740 |
Electrical Conduit |
10 |
A |
0 |
0 |
0 |
electrical-conduit-en |
6473/7627/7689 |
7750 |
7693 |
6473/7627/7693/7750 |
Light Switches |
10 |
A |
0 |
0 |
33 |
light-switches-en |
6473/7627/7693 |
7686 |
7627 |
6473/7627/7686 |
Ballasts & Starters |
20 |
A |
0 |
0 |
0 |
ballasts-and-starters-en |
6473/7627 |
7741 |
7689 |
6473/7627/7689/7741 |
Heat-Shrink Tubing |
20 |
A |
0 |
0 |
0 |
heat-shrink-tubing-en |
6473/7627/7689 |
7751 |
7693 |
6473/7627/7693/7751 |
Specialty Electrical Switches & Relays |
20 |
A |
0 |
0 |
14 |
specialty-electrical-switches-and-relays-en |
6473/7627/7693 |
7687 |
7627 |
6473/7627/7687 |
Carbon Brushes |
30 |
A |
0 |
0 |
0 |
carbon-brushes-en |
6473/7627 |
7688 |
7627 |
6473/7627/7688 |
Circuit Breaker Panels |
40 |
A |
0 |
0 |
10 |
circuit-breaker-panels-en |
6473/7627 |
7689 |
7627 |
6473/7627/7689 |
Conduit & Housings |
50 |
A |
0 |
0 |
0 |
conduit-and-housings-en |
6473/7627 |
7690 |
7627 |
6473/7627/7690 |
Electrical Motors |
60 |
A |
0 |
0 |
0 |
electrical-motors-en |
6473/7627 |
7691 |
7627 |
6473/7627/7691 |
Electrical Mount Boxes & Brackets |
70 |
A |
0 |
0 |
34 |
electrical-mount-boxes-and-brackets-en |
6473/7627 |
7692 |
7627 |
6473/7627/7692 |
Electrical Plug Caps |
80 |
A |
0 |
0 |
0 |
electrical-plug-caps-en |
6473/7627 |
7693 |
7627 |
6473/7627/7693 |
Electrical Switches |
90 |
A |
0 |
0 |
334 |
electrical-switches-en |
6473/7627 |
7694 |
7627 |
6473/7627/7694 |
Electrical Wires & Cable |
100 |
A |
0 |
0 |
15 |
electrical-wires-and-cable-en |
6473/7627 |
7695 |
7627 |
6473/7627/7695 |
Extension Cord Accessories |
110 |
A |
0 |
0 |
0 |
extension-cord-accessories-en |
6473/7627 |
7696 |
7627 |
6473/7627/7696 |
Extension Cords |
120 |
A |
0 |
0 |
0 |
extension-cords-en |
6473/7627 |
7697 |
7627 |
6473/7627/7697 |
Generator Accessories |
130 |
A |
0 |
0 |
0 |
generator-accessories-en |
6473/7627 |
7698 |
7627 |
6473/7627/7698 |
Generators |
140 |
A |
0 |
0 |
0 |
generators-en |
6473/7627 |
7699 |
7627 |
6473/7627/7699 |
Home Automation Kits |
150 |
A |
0 |
0 |
0 |
home-automation-kits-en |
6473/7627 |
7700 |
7627 |
6473/7627/7700 |
Phone & Data Jacks |
160 |
A |
0 |
0 |
0 |
phone-and-data-jacks-en |
6473/7627 |
7702 |
7627 |
6473/7627/7702 |
Power Converters |
180 |
A |
0 |
0 |
0 |
power-converters-en |
6473/7627 |
7703 |
7627 |
6473/7627/7703 |
Power Inlets |
190 |
A |
0 |
0 |
0 |
power-inlets-en |
6473/7627 |
7704 |
7627 |
6473/7627/7704 |
Power Inverters |
200 |
A |
0 |
0 |
40 |
power-inverters-en |
6473/7627 |
7705 |
7627 |
6473/7627/7705 |
Power Outlets & Sockets |
210 |
A |
0 |
0 |
13 |
power-outlets-and-sockets-en |
6473/7627 |
7706 |
7627 |
6473/7627/7706 |
Solar Energy Kits |
220 |
A |
0 |
0 |
0 |
solar-energy-kits-en |
6473/7627 |
7707 |
7627 |
6473/7627/7707 |
Solar Panels |
230 |
A |
0 |
0 |
19 |
solar-panels-en |
6473/7627 |
7708 |
7627 |
6473/7627/7708 |
Voltage Transformers & Regulator |
240 |
A |
0 |
0 |
0 |
voltage-transformers-and-regulator-en |
6473/7627 |
7709 |
7627 |
6473/7627/7709 |
Wall Plates & Covers |
250 |
A |
0 |
0 |
0 |
wall-plates-and-covers-en |
6473/7627 |
7710 |
7627 |
6473/7627/7710 |
Wall Socket Controls & Sensors |
260 |
A |
0 |
0 |
0 |
wall-socket-controls-and-sensors-en |
6473/7627 |
7711 |
7627 |
6473/7627/7711 |
Wire Caps & Nuts |
270 |
A |
0 |
0 |
0 |
wire-caps-and-nuts-en |
6473/7627 |
7712 |
7627 |
6473/7627/7712 |
Wire Terminals & Connectors |
280 |
A |
0 |
0 |
21 |
wire-terminals-and-connectors-en |
6473/7627 |