Query time 0.00145
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "39.72"
},
"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": 33,
"rows_produced_per_join": 0,
"filtered": "0.15",
"cost_info": {
"read_cost": "33.00",
"eval_cost": "0.01",
"prefix_cost": "39.60",
"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 '266/%') 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": "39.66",
"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": "39.72",
"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 |
356 |
266 |
266/356 |
Home & Office |
0 |
A |
0 |
0 |
home-and-office-en |
266 |
10667 |
266 |
266/10667 |
Test Category |
0 |
A |
0 |
0 |
test-category |
266 |
1584 |
266 |
266/1584 |
Intelligent Electronic Devices & Security |
20 |
A |
0 |
0 |
services-of-electronic |
266 |
344 |
266 |
266/344 |
Plumbing & Electrical Services |
30 |
A |
0 |
0 |
plumbing-and-electrical-services |
266 |
394 |
266 |
266/394 |
Car Services |
40 |
A |
0 |
0 |
car-services |
266 |
2404 |
266 |
266/2404 |
Food Delivery |
40 |
A |
0 |
0 |
food-delivery-en |
266 |
443 |
266 |
266/443 |
Construction |
50 |
A |
0 |
0 |
construction |
266 |
1936 |
266 |
266/1936 |
Economy & Finance Services |
60 |
A |
0 |
0 |
economy-and-finance-services |
266 |
1907 |
266 |
266/1907 |
Beauty & Wellness |
65 |
A |
0 |
0 |
wellness |
266 |
990 |
266 |
266/990 |
Art & Photography |
70 |
A |
0 |
0 |
art-and-photography |
266 |
930 |
266 |
266/930 |
Personalized Products |
90 |
A |
0 |
0 |
personalized-products |
266 |
1498 |
266 |
266/1498 |
Engineering & Transportation |
100 |
A |
0 |
0 |
engineering-and-transportation |
266 |
341 |
266 |
266/341 |
Sanitizing |
110 |
A |
0 |
0 |
sanitizing |
266 |
327 |
266 |
266/327 |
Rental |
140 |
A |
0 |
0 |
rental |
266 |
715 |
266 |
266/715 |
After-Sale Services |
150 |
A |
0 |
0 |
after-sale-services |
266 |
2171 |
266 |
266/2171 |
Gifts & Events |
160 |
A |
0 |
0 |
gifts-and-events |
266 |
2178 |
266 |
266/2178 |
Health Care Services |
170 |
A |
0 |
0 |
health-care-services-en |
266 |
2373 |
266 |
266/2373 |
Jobs & Education |
180 |
A |
0 |
0 |
jobs-and-education |
266 |
2433 |
266 |
266/2433 |
Consulting and Various Offers |
190 |
A |
0 |
0 |
consulting-and-various-offers |
266 |
2465 |
266 |
266/2465 |
Pet Care |
200 |
A |
0 |
0 |
pet-care-en |
266 |
2577 |
266 |
266/2577 |
Holidays and Travel |
210 |
A |
0 |
0 |
holiday-travel |
266 |
2591 |
266 |
266/2591 |
Security and Protection |
220 |
A |
0 |
0 |
security-protection |
266 |
2611 |
266 |
266/2611 |
Phones and Smartphones |
230 |
A |
0 |
0 |
phones-smartphones |
266 |
2615 |
266 |
266/2615 |
Music and Sounds |
240 |
A |
0 |
0 |
music-sound |
266 |
9692 |
266 |
266/9692 |
Programming and Tech |
250 |
A |
0 |
0 |
programming-and-tech |
266 |
9830 |
266 |
266/9830 |
Electric Energy and Natural Gas |
260 |
A |
0 |
0 |
electric-energy-and-natural-gas |
266 |
9840 |
266 |
266/9840 |
Training In The Place Of Advice And Various Offers |
290 |
A |
0 |
0 |
training-in-the-place-of-advice-and-various-offers |
266 |
9844 |
266 |
266/9844 |
Legal Services |
300 |
A |
0 |
0 |
law-services |
266 |
9926 |
266 |
266/9926 |
Venue Booking |
310 |
A |
0 |
0 |
venue-booking |
266 |
9936 |
266 |
266/9936 |
Funeral Services |
320 |
A |
0 |
0 |
funeral-services |
266 |
10631 |
266 |
266/10631 |
Hidrosanitare |
330 |
A |
0 |
0 |
hidrosanitare |
266 |
10632 |
266 |
266/10632 |
Sisteme Ngrohje - Ftohje |
340 |
A |
0 |
0 |
sisteme-ngrohje-ftohje |
266 |
10633 |
266 |
266/10633 |
Hidraulike |
350 |
A |
0 |
0 |
hidraulike |
266 |