Query time 0.00054
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.59"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 6,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "((`cscartdevel`.`cscart_categories`.`category_id` <> 264) and (`cscartdevel`.`cscart_categories`.`category_id` in (295,321,399,348,362,363)))",
"cost_info": {
"read_cost": "4.20",
"eval_cost": "0.01",
"prefix_cost": "4.21",
"data_read_per_join": "423"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"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`.`parent_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.03",
"eval_cost": "0.01",
"prefix_cost": "4.25",
"data_read_per_join": "409"
},
"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": [
"cscartdevel.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 8,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.24",
"eval_cost": "0.10",
"prefix_cost": "4.59",
"data_read_per_join": "1K"
},
"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 |
295 |
0 |
295 |
Żywność |
10 |
A |
0 |
0 |
zywnosc |
|
none |
321 |
295 |
295/321 |
Soki |
130 |
A |
0 |
0 |
soki |
295 |
none |
348 |
399 |
295/399/348 |
Pasty orzechowe |
180 |
A |
0 |
0 |
pasty |
295/399 |
none |
362 |
295 |
295/362 |
Dżemy |
190 |
A |
0 |
0 |
dzemy |
295 |
none |
363 |
295 |
295/363 |
Musy |
200 |
A |
0 |
0 |
musy |
295 |
none |
399 |
295 |
295/399 |
Pasty |
290 |
A |
0 |
0 |
pasty-pl |
295 |
none |