Query time 0.00070
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.31"
},
"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": "2.00",
"cost_info": {
"read_cost": "1.70",
"eval_cost": "0.03",
"prefix_cost": "3.30",
"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`.`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.08",
"eval_cost": "0.03",
"prefix_cost": "3.41",
"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.64",
"eval_cost": "0.26",
"prefix_cost": "4.31",
"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 |
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 |
314 |
0 |
314 |
Książki i edukacja |
150 |
A |
0 |
0 |
ksiazki-i-edukacja |
|
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 |
318 |
0 |
318 |
Rękodzieło |
170 |
A |
0 |
0 |
rekodzielo |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
319 |
0 |
319 |
AGD |
180 |
A |
0 |
0 |
agd |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
332 |
0 |
332 |
Produkty bez kategorii |
230 |
A |
0 |
0 |
produkty-bez-kategorii |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
333 |
0 |
333 |
Dla zwierząt |
240 |
A |
0 |
0 |
dla-zwierzat |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
373 |
0 |
373 |
Uprawa roślin |
270 |
A |
0 |
0 |
uprawa-roslin |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
383 |
0 |
383 |
Wyposażenie domu |
280 |
A |
0 |
0 |
wyposazenie-domu |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |