Query time 0.00173
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.33"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "ushop_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": 18,
"rows_produced_per_join": 0,
"filtered": "0.28",
"cost_info": {
"read_cost": "4.50",
"eval_cost": "0.01",
"prefix_cost": "6.30",
"data_read_per_join": "166"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"category_type",
"ab__lc_catalog_image_control",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image"
],
"attached_condition": "(((`marketplace`.`ushop_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`marketplace`.`ushop_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`marketplace`.`ushop_categories`.`usergroup_ids`))) and (`marketplace`.`ushop_categories`.`status` = 'A') and (`marketplace`.`ushop_categories`.`id_path` like '330/%') and (`marketplace`.`ushop_categories`.`category_id` <> 264) and (`marketplace`.`ushop_categories`.`storefront_id` in (0,1)) and (`marketplace`.`ushop_categories`.`category_type` <> 'W'))"
}
},
{
"table": {
"table_name": "ushop_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"marketplace.ushop_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "6.32",
"data_read_per_join": "170"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"table": {
"table_name": "ushop_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"marketplace.ushop_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "6.34",
"data_read_per_join": "86"
},
"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 |
| 421 |
330 |
330/421 |
|
0 |
A |
0 |
0 |
golosinas-para-mascotas |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 433 |
330 |
330/433 |
|
0 |
A |
0 |
0 |
otros |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 432 |
330 |
330/432 |
|
0 |
A |
0 |
0 |
roedores |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 431 |
330 |
330/431 |
|
0 |
A |
0 |
0 |
reptiles-y-anfibios |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 430 |
330 |
330/430 |
|
0 |
A |
0 |
0 |
pilotos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 429 |
330 |
330/429 |
|
0 |
A |
0 |
0 |
perros |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 428 |
330 |
330/428 |
|
0 |
A |
0 |
0 |
peces |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 427 |
330 |
330/427 |
|
0 |
A |
0 |
0 |
panales |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 426 |
330 |
330/426 |
|
0 |
A |
0 |
0 |
pastas-dentales |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 425 |
330 |
330/425 |
|
0 |
A |
0 |
0 |
monos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 424 |
330 |
330/424 |
|
0 |
A |
0 |
0 |
jaulas-para-mascotas |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 423 |
330 |
330/423 |
|
0 |
A |
0 |
0 |
jabones |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 422 |
330 |
330/422 |
|
0 |
A |
0 |
0 |
insectos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 408 |
330 |
330/408 |
|
0 |
A |
0 |
0 |
abrigos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 420 |
330 |
330/420 |
|
0 |
A |
0 |
0 |
gatos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 419 |
330 |
330/419 |
|
0 |
A |
0 |
0 |
equinos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 418 |
330 |
330/418 |
|
0 |
A |
0 |
0 |
cortaunas |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 417 |
330 |
330/417 |
|
0 |
A |
0 |
0 |
correas-para-mascotas |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 416 |
330 |
330/416 |
|
0 |
A |
0 |
0 |
contenedores-de-alimento |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 415 |
330 |
330/415 |
|
0 |
A |
0 |
0 |
conejos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 414 |
330 |
330/414 |
|
0 |
A |
0 |
0 |
collares |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 413 |
330 |
330/413 |
|
0 |
A |
0 |
0 |
cinturones-de-seguridad |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 412 |
330 |
330/412 |
|
0 |
A |
0 |
0 |
cepillos-y-peines |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 411 |
330 |
330/411 |
|
0 |
A |
0 |
0 |
botas-y-zapatos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 410 |
330 |
330/410 |
|
0 |
A |
0 |
0 |
aves |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 409 |
330 |
330/409 |
|
0 |
A |
0 |
0 |
ahuyentadores-ultrasonicos |
330 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |