Query time 0.00145
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.64"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path",
"index_categories_on_deleted_at"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 54,
"rows_produced_per_join": 0,
"filtered": "0.10",
"index_condition": "(`goimagine`.`categories`.`id_path` like '8/%')",
"cost_info": {
"read_cost": "24.55",
"eval_cost": "0.01",
"prefix_cost": "24.56",
"data_read_per_join": "144"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"deleted_at",
"storefront_id"
],
"attached_condition": "((`goimagine`.`categories`.`company_id` = 0) and ((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` = 'A') and (`goimagine`.`categories`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null))"
}
},
{
"table": {
"table_name": "category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.02",
"eval_cost": "0.01",
"prefix_cost": "24.59",
"data_read_per_join": "250"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"mega_m_category_banner_url",
"mega_m_category_svg_icon"
]
}
},
{
"table": {
"table_name": "seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"goimagine.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": "24.64",
"data_read_per_join": "93"
},
"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 |
mega_m_category_banner_url |
mega_m_category_svg_icon |
6781 |
41 |
8/41/6781 |
Patterns |
5 |
A |
0 |
0 |
patterns |
8/41 |
|
|
6782 |
6781 |
8/41/6781/6782 |
Cross Stitch Patterns |
10 |
A |
0 |
0 |
cross-stitch |
8/41/6781 |
|
|
6767 |
42 |
8/42/6767 |
Digital Paper |
10 |
A |
0 |
0 |
digital-paper |
8/42 |
|
|
6737 |
40 |
8/40/6737 |
Jewelry Findings |
10 |
A |
0 |
0 |
jewelry-findings |
8/40 |
|
|
41 |
8 |
8/41 |
Sewing & Fiber |
10 |
A |
0 |
0 |
sewing-and-fiber |
8 |
|
|
6775 |
41 |
8/41/6775 |
Sewing Tools & Supplies |
10 |
A |
0 |
0 |
sewing-tools |
8/41 |
|
|
6791 |
6790 |
8/6790/6791 |
Sublimation |
10 |
A |
0 |
0 |
sublimation |
8/6790 |
|
|
6783 |
6781 |
8/41/6781/6783 |
Embroidery Patterns |
20 |
A |
0 |
0 |
embroidery |
8/41/6781 |
|
|
6777 |
41 |
8/41/6777 |
Fiber Art Tools |
20 |
A |
0 |
0 |
fiber-art-tools |
8/41 |
|
|
6792 |
6790 |
8/6790/6792 |
Iron On Transfers |
20 |
A |
0 |
0 |
iron-on-transfers |
8/6790 |
|
|
40 |
8 |
8/40 |
Jewelry & Beauty |
20 |
A |
0 |
0 |
jewelry-and-beauty |
8 |
|
|
6761 |
44 |
8/44/6761 |
Molds |
20 |
A |
0 |
0 |
molds |
8/44 |
|
|
6768 |
42 |
8/42/6768 |
Paper Craft Kits |
20 |
A |
0 |
0 |
paper-craft-kits |
8/42 |
|
|
180 |
6534 |
8/6534/180 |
Design Patterns & Templates |
23 |
A |
0 |
0 |
design-and-templates |
8/6534 |
|
|
61 |
6534 |
8/6534/61 |
SVG & Image Files |
25 |
A |
0 |
0 |
svg-and-image |
8/6534 |
|
|
6784 |
6781 |
8/41/6781/6784 |
Knitting Patterns |
30 |
A |
0 |
0 |
knitting |
8/41/6781 |
|
|
6776 |
41 |
8/41/6776 |
Yarn |
30 |
A |
0 |
0 |
yarn |
8/41 |
|
|
6785 |
6781 |
8/41/6781/6785 |
Crochet Patterns |
40 |
A |
0 |
0 |
crochet |
8/41/6781 |
|
|
6789 |
41 |
8/41/6789 |
Embroidery & Needlework Supplies |
40 |
A |
0 |
0 |
embroidery-needlework |
8/41 |
|
|
102 |
8 |
8/102 |
Paint & Stains |
40 |
A |
0 |
0 |
paint-and-stains |
8 |
|
|
6740 |
40 |
8/40/6740 |
Rocks & Gemstones |
40 |
A |
0 |
0 |
rocks-and-gemstones |
8/40 |
|
|
6794 |
6790 |
8/6790/6794 |
Vinyl Transfers |
40 |
A |
0 |
0 |
vinyl-transfers |
8/6790 |
|
|
6534 |
8 |
8/6534 |
Digital Files & Templates |
50 |
A |
0 |
0 |
digital-files-and-templates |
8 |
|
|
6787 |
41 |
8/41/6787 |
Embroidery Design Files |
50 |
A |
0 |
0 |
embroidery-design-files |
8/41 |
|
|
6741 |
40 |
8/40/6741 |
Hair Crafts |
50 |
A |
0 |
0 |
hair-crafts |
8/40 |
|
|
6786 |
6781 |
8/41/6781/6786 |
Sewing Patterns |
50 |
A |
0 |
0 |
sewing |
8/41/6781 |
|
|
6771 |
6534 |
8/6534/6771 |
Laser Files |
55 |
A |
0 |
0 |
laser-files |
8/6534 |
|
|
6788 |
6781 |
8/41/6781/6788 |
Quilting |
60 |
A |
0 |
0 |
quilting |
8/41/6781 |
|
|
6790 |
8 |
8/6790 |
Transfers |
60 |
A |
0 |
0 |
transfers |
8 |
|
|
6778 |
41 |
8/41/6778 |
Wool & Felting |
60 |
A |
0 |
0 |
wool-and-felting |
8/41 |
|
|
6772 |
6534 |
8/6534/6772 |
3D Printer Files |
65 |
A |
0 |
0 |
3d-printer-files |
8/6534 |
|
|
42 |
8 |
8/42 |
Papercraft |
70 |
A |
0 |
0 |
papercraft |
8 |
|
|
44 |
8 |
8/44 |
Sculpting & Forming |
80 |
A |
0 |
0 |
sculpting-and-forming |
8 |
|
|
101 |
8 |
8/101 |
Woodworking |
90 |
A |
0 |
0 |
woodworking |
8 |
|
|
103 |
8 |
8/103 |
Candle Making |
100 |
A |
0 |
0 |
candle-making |
8 |
|
|
80 |
8 |
8/80 |
Blanks |
110 |
A |
0 |
0 |
blanks |
8 |
|
|
39 |
8 |
8/39 |
Home & Hobby |
120 |
A |
0 |
0 |
home-and-hobby |
8 |
|
|
12260 |
41 |
8/41/12260 |
Quilting Supplies |
275 |
A |
0 |
0 |
quilting-supplies |
8/41 |
|
|