Query time 0.00343
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.35"
},
"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": 21,
"rows_produced_per_join": 0,
"filtered": "0.30",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "0.01",
"prefix_cost": "25.20",
"data_read_per_join": "388"
},
"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 '2910/%') 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.06",
"eval_cost": "0.01",
"prefix_cost": "25.28",
"data_read_per_join": "267"
},
"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.06",
"eval_cost": "0.01",
"prefix_cost": "25.35",
"data_read_per_join": "111"
},
"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 |
2913 |
2910 |
2910/2913 |
Bathroom Accessories |
0 |
A |
0 |
0 |
bathroom-accessories |
2910 |
3018 |
2910 |
2910/3018 |
Business & Home Security |
0 |
A |
0 |
0 |
business-and-home-security |
2910 |
2916 |
2910 |
2910/2916 |
Decor |
0 |
A |
0 |
0 |
decor |
2910 |
2915 |
2910 |
2910/2915 |
Emergency Preparedness |
0 |
A |
0 |
0 |
emergency-preparedness |
2910 |
2944 |
2910 |
2910/2944 |
Fireplace & Wood Stove Accessories |
0 |
A |
0 |
0 |
fireplace-and-wood-stove-accessories |
2910 |
3007 |
2910 |
2910/3007 |
Fireplaces |
0 |
A |
0 |
0 |
fireplaces |
2910 |
3011 |
2910 |
2910/3011 |
Flood, Fire & Gas Safety |
0 |
A |
0 |
0 |
flood-fire-and-gas-safety |
2910 |
3080 |
2910 |
2910/3080 |
Household Appliance Accessories |
0 |
A |
0 |
0 |
household-appliance-accessories |
2910 |
2912 |
2910 |
2910/2912 |
Household Appliances |
0 |
A |
0 |
0 |
household-appliances |
2910 |
3105 |
2910 |
2910/3105 |
Household Supplies |
0 |
A |
0 |
0 |
household-supplies |
2910 |
2920 |
2910 |
2910/2920 |
Kitchen & Dining |
0 |
A |
0 |
0 |
kitchen-and-dining |
2910 |
3362 |
2910 |
2910/3362 |
Lawn & Garden |
0 |
A |
0 |
0 |
lawn-and-garden |
2910 |
3691 |
2910 |
2910/3691 |
Lighting |
0 |
A |
0 |
0 |
lighting |
2910 |
3408 |
2910 |
2910/3408 |
Linens & Bedding |
0 |
A |
0 |
0 |
linens-and-bedding |
2910 |
3251 |
2910 |
2910/3251 |
Plants |
0 |
A |
0 |
0 |
plants |
2910 |
3006 |
2910 |
2910/3006 |
Pool & Spa |
0 |
A |
0 |
0 |
pool-and-spa |
2910 |
2933 |
2910 |
2910/2933 |
Smoking Accessories |
0 |
A |
0 |
0 |
smoking-accessories-humidors |
2910 |
2921 |
2910 |
2910/2921 |
Umbrella Sleeves & Cases |
0 |
A |
0 |
0 |
umbrella-sleeves-and-cases |
2910 |
2914 |
2910 |
2910/2914 |
Wood Stoves |
0 |
A |
0 |
0 |
wood-stoves |
2910 |
4029 |
2910 |
2910/4029 |
Parasols & Rain Umbrellas |
10 |
A |
0 |
0 |
parasols-and-rain-umbrellas |
2910 |
5522 |
2910 |
2910/5522 |
Lighting Accessories |
20 |
A |
0 |
0 |
lighting-accessories |
2910 |