Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.36"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 25,
"rows_produced_per_join": 0,
"filtered": "1.47",
"cost_info": {
"read_cost": "1.70",
"eval_cost": "0.04",
"prefix_cost": "4.20",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"ab__lc_catalog_image_control"
],
"attached_condition": "(((`cscartdevel`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdevel`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdevel`.`cscart_categories`.`usergroup_ids`))) and (`cscartdevel`.`cscart_categories`.`status` = 'A') and (`cscartdevel`.`cscart_categories`.`id_path` like '295/%') and (`cscartdevel`.`cscart_categories`.`category_id` <> 264) and (`cscartdevel`.`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": [
"cscartdevel.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.09",
"eval_cost": "0.04",
"prefix_cost": "4.33",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"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": [
"cscartdevel.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 8,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.74",
"eval_cost": "0.29",
"prefix_cost": "5.36",
"data_read_per_join": "4K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
ab__lc_catalog_image_control |
ab__fn_category_status |
ab__fn_label_color |
ab__fn_label_background |
ab__fn_use_origin_image |
ab__fn_label_text |
ab__fn_label_show |
403 |
295 |
295/403 |
Do pieczenia |
0 |
A |
0 |
0 |
do-pieczenia-pl |
295 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
298 |
295 |
295/298 |
Nabiał |
20 |
A |
0 |
0 |
nabial-pl |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
299 |
295 |
295/299 |
Zioła, przyprawy i buliony |
40 |
A |
0 |
0 |
ziola-i-przyprawy |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
300 |
295 |
295/300 |
Miód i produkty pszczele |
50 |
A |
0 |
0 |
miod-i-produkty-pszczele |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
301 |
295 |
295/301 |
Przetwory |
60 |
A |
0 |
0 |
przetwory-i-konfitury |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
303 |
295 |
295/303 |
Bakalie, nasiona i ziarna |
80 |
A |
0 |
0 |
bakalie-i-orzechy |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
305 |
295 |
295/305 |
Oleje i tłuszcze |
100 |
A |
0 |
0 |
oleje |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
306 |
295 |
295/306 |
Produkty fermentowane |
110 |
A |
0 |
0 |
produkty-fermentowane |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
321 |
295 |
295/321 |
Soki |
130 |
A |
0 |
0 |
soki |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
324 |
295 |
295/324 |
Zdrowe słodycze, desery i przekąski |
160 |
A |
0 |
0 |
slodycze-i-przekaski |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
362 |
295 |
295/362 |
Dżemy |
190 |
A |
0 |
0 |
dzemy |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
363 |
295 |
295/363 |
Musy |
200 |
A |
0 |
0 |
musy |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
399 |
295 |
295/399 |
Pasty |
290 |
A |
0 |
0 |
pasty-pl |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
388 |
295 |
295/388 |
Rośliny strączkowe |
290 |
A |
0 |
0 |
rosliny-straczkowe-i-zboza |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
389 |
295 |
295/389 |
Herbaty, kawy i napoje |
300 |
A |
0 |
0 |
herbaty-i-napoje |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
390 |
295 |
295/390 |
Słodziki |
310 |
A |
0 |
0 |
slodziki |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
391 |
295 |
295/391 |
Produkty sypkie |
320 |
A |
0 |
0 |
produkty-sypkie |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
393 |
295 |
295/393 |
Kakao |
330 |
A |
0 |
0 |
kakao |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
394 |
295 |
295/394 |
Glony |
340 |
A |
0 |
0 |
glony |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
395 |
295 |
295/395 |
Owoce w puszce |
350 |
A |
0 |
0 |
do-pieczenia |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
396 |
295 |
295/396 |
Dania gotowe |
360 |
A |
0 |
0 |
dania-gotowe |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
397 |
295 |
295/397 |
Sosy |
370 |
A |
0 |
0 |
sosy |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
401 |
295 |
295/401 |
Warzywa w puszce |
380 |
A |
0 |
0 |
warzywa-w-puszce |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |
405 |
295 |
295/405 |
Grzyby suszone |
390 |
A |
0 |
0 |
grzyby-suszone |
295 |
none |
N |
#ffffff |
#222222 |
N |
|
N |