Query time 0.00180
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.63"
},
"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": 17,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2653/2760/%')",
"cost_info": {
"read_cost": "24.74",
"eval_cost": "0.07",
"prefix_cost": "24.81",
"data_read_per_join": "2K"
},
"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.34",
"eval_cost": "0.07",
"prefix_cost": "25.22",
"data_read_per_join": "1K"
},
"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.34",
"eval_cost": "0.07",
"prefix_cost": "25.63",
"data_read_per_join": "590"
},
"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 |
9985 |
2760 |
2653/2760/9985 |
Watches |
0 |
A |
0 |
0 |
74 |
watches-en |
2653/2760 |
2772 |
2760 |
2653/2760/2772 |
Anklets |
10 |
A |
0 |
0 |
0 |
anklets |
2653/2760 |
2824 |
2818 |
2653/2760/2818/2824 |
Watch Bands |
10 |
A |
0 |
0 |
0 |
watch-bands |
2653/2760/2818 |
2782 |
2760 |
2653/2760/2782 |
Body Jewelry |
20 |
A |
0 |
0 |
20 |
body-jewelry |
2653/2760 |
2827 |
2818 |
2653/2760/2818/2827 |
Watch Stickers & Decals |
20 |
A |
0 |
0 |
0 |
watch-stickers-and-decals |
2653/2760/2818 |
2793 |
2760 |
2653/2760/2793 |
Bracelets |
30 |
A |
0 |
0 |
340 |
bracelets |
2653/2760 |
2833 |
2818 |
2653/2760/2818/2833 |
Watch Winders |
30 |
A |
0 |
0 |
0 |
watch-winders |
2653/2760/2818 |
2818 |
2760 |
2653/2760/2818 |
Watch Accessories |
40 |
A |
0 |
0 |
45 |
watch-accessories |
2653/2760 |
2801 |
2760 |
2653/2760/2801 |
Brooches & Lapel Pins |
1020 |
A |
0 |
0 |
19 |
brooches-and-lapel-pins |
2653/2760 |
2811 |
2760 |
2653/2760/2811 |
Charms & Pendants |
1030 |
A |
0 |
0 |
136 |
charms-and-pendants |
2653/2760 |
2821 |
2760 |
2653/2760/2821 |
Earrings |
1040 |
A |
0 |
0 |
289 |
earrings |
2653/2760 |
2840 |
2760 |
2653/2760/2840 |
Jewelry Sets |
1050 |
A |
0 |
0 |
62 |
jewelry-sets |
2653/2760 |
2848 |
2760 |
2653/2760/2848 |
Necklaces |
1060 |
A |
0 |
0 |
357 |
necklaces |
2653/2760 |
2851 |
2760 |
2653/2760/2851 |
Watches |
1070 |
A |
0 |
0 |
902 |
watches |
2653/2760 |
2855 |
2760 |
2653/2760/2855 |
Rings |
1080 |
A |
0 |
0 |
2528 |
rings |
2653/2760 |