Query time 0.00074
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.04"
},
"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",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 0,
"filtered": "1.47",
"cost_info": {
"read_cost": "1.70",
"eval_cost": "0.02",
"prefix_cost": "3.30",
"data_read_per_join": "830"
},
"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`.`category_id` <> 264) and (`cscartdevel`.`cscart_categories`.`storefront_id` in (0,1)) and (`cscartdevel`.`cscart_categories`.`category_id` in (295,298,299,300,301,303,305,306,308,309,313,321,324,399,348,317,359,362,363,391,386,388,389,390,392,393,394,395,396,397,398,400,401,383,402,403,404,405)))"
}
},
{
"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.06",
"eval_cost": "0.02",
"prefix_cost": "3.38",
"data_read_per_join": "803"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.47",
"eval_cost": "0.19",
"prefix_cost": "4.04",
"data_read_per_join": "3K"
},
"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 |
295 |
0 |
295 |
Żywność |
10 |
A |
0 |
0 |
zywnosc |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
308 |
0 |
308 |
Kosmetyki i higiena |
100 |
A |
0 |
0 |
kosmetyki-i-higiena |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
313 |
0 |
313 |
Suplementy |
140 |
A |
0 |
0 |
suplementy |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
317 |
0 |
317 |
Relaks i wellbeing |
160 |
A |
0 |
0 |
relaks-i-wellbeing |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
383 |
0 |
383 |
Wyposażenie domu |
280 |
A |
0 |
0 |
wyposazenie-domu |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |