Query time 0.00141
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.12"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 25,
"rows_produced_per_join": 0,
"filtered": "0.20",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "0.01",
"prefix_cost": "30.00",
"data_read_per_join": "303"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"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`.`id_path` like '6473/7822/%') 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.05",
"eval_cost": "0.01",
"prefix_cost": "30.06",
"data_read_per_join": "208"
},
"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.05",
"eval_cost": "0.01",
"prefix_cost": "30.12",
"data_read_per_join": "86"
},
"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 |
seo_name |
seo_path |
7918 |
7822 |
6473/7822/7918 |
Brackets & Reinforcement Braces |
10 |
A |
0 |
0 |
brackets-and-reinforcement-braces-en |
6473/7822 |
7919 |
7822 |
6473/7822/7919 |
Cabinet Hardware |
20 |
A |
0 |
0 |
cabinet-hardware-en |
6473/7822 |
7920 |
7822 |
6473/7822/7920 |
Casters |
30 |
A |
0 |
0 |
casters-en |
6473/7822 |
7921 |
7822 |
6473/7822/7921 |
Chain, Wire & Rope |
40 |
A |
0 |
0 |
chain-wire-and-rope-en |
6473/7822 |
7922 |
7822 |
6473/7822/7922 |
Coils |
50 |
A |
0 |
0 |
coils-en |
6473/7822 |
7923 |
7822 |
6473/7822/7923 |
Concrete Molds |
60 |
A |
0 |
0 |
concrete-molds-en |
6473/7822 |
7924 |
7822 |
6473/7822/7924 |
Dowel Pins & Rods |
70 |
A |
0 |
0 |
dowel-pins-and-rods-en |
6473/7822 |
7925 |
7822 |
6473/7822/7925 |
Drawer Slides |
80 |
A |
0 |
0 |
drawer-slides-en |
6473/7822 |
7926 |
7822 |
6473/7822/7926 |
Drop Cloths |
90 |
A |
0 |
0 |
drop-cloths-en |
6473/7822 |
7927 |
7822 |
6473/7822/7927 |
Filters & Screens |
100 |
A |
0 |
0 |
filters-and-screens-en |
6473/7822 |
7928 |
7822 |
6473/7822/7928 |
Flagging & Caution Tape |
110 |
A |
0 |
0 |
flagging-and-caution-tape-en |
6473/7822 |
7929 |
7822 |
6473/7822/7929 |
Gas Hoses |
120 |
A |
0 |
0 |
gas-hoses-en |
6473/7822 |
7930 |
7822 |
6473/7822/7930 |
Ground Spikes |
130 |
A |
0 |
0 |
ground-spikes-en |
6473/7822 |
7931 |
7822 |
6473/7822/7931 |
Hardware Fasteners |
140 |
A |
0 |
0 |
hardware-fasteners-en |
6473/7822 |
7932 |
7822 |
6473/7822/7932 |
Hinges |
150 |
A |
0 |
0 |
hinges-en |
6473/7822 |
7933 |
7822 |
6473/7822/7933 |
Hooks, Buckles & Fasteners |
160 |
A |
0 |
0 |
hooks-buckles-and-fasteners-en |
6473/7822 |
7934 |
7822 |
6473/7822/7934 |
Lubrication Hoses |
170 |
A |
0 |
0 |
lubrication-hoses-en |
6473/7822 |
7935 |
7822 |
6473/7822/7935 |
Metal Casting Molds |
180 |
A |
0 |
0 |
metal-casting-molds-en |
6473/7822 |
7936 |
7822 |
6473/7822/7936 |
Moving & Soundproofing Blankets & Covers |
190 |
A |
0 |
0 |
moving-and-soundproofing-blankets-and-covers-en |
6473/7822 |
7937 |
7822 |
6473/7822/7937 |
Pneumatic Hoses |
200 |
A |
0 |
0 |
pneumatic-hoses-en |
6473/7822 |
7938 |
7822 |
6473/7822/7938 |
Post Base Plates |
210 |
A |
0 |
0 |
post-base-plates-en |
6473/7822 |
7939 |
7822 |
6473/7822/7939 |
Springs |
220 |
A |
0 |
0 |
springs |
6473/7822 |
7940 |
7822 |
6473/7822/7940 |
Tarps |
230 |
A |
0 |
0 |
tarps-en |
6473/7822 |
7941 |
7822 |
6473/7822/7941 |
Tool Storage & Organization |
240 |
A |
0 |
0 |
tool-storage-and-organization-en |
6473/7822 |
7942 |
7822 |
6473/7822/7942 |
Wall Jacks & Braces |
250 |
A |
0 |
0 |
wall-jacks-and-braces-en |
6473/7822 |