Query time 0.00142
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.18"
},
"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": 26,
"rows_produced_per_join": 0,
"filtered": "0.22",
"cost_info": {
"read_cost": "6.50",
"eval_cost": "0.01",
"prefix_cost": "9.10",
"data_read_per_join": "189"
},
"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 '316/%') 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": "9.12",
"data_read_per_join": "195"
},
"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": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "9.18",
"data_read_per_join": "298"
},
"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 |
| 511 |
316 |
316/511 |
|
0 |
A |
0 |
0 |
lotes-de-ropa |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 521 |
316 |
316/521 |
|
0 |
A |
0 |
0 |
otros |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 520 |
316 |
316/520 |
|
0 |
A |
0 |
0 |
vestidos |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 519 |
316 |
316/519 |
|
0 |
A |
0 |
0 |
trajes-de-bano |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 518 |
316 |
316/518 |
|
0 |
A |
0 |
0 |
trajes |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 517 |
316 |
316/517 |
|
0 |
A |
0 |
0 |
ropa-y-calzado-para-bebes |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 516 |
316 |
316/516 |
|
0 |
A |
0 |
0 |
ropa-interior-y-de-dormir |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 515 |
316 |
316/515 |
|
0 |
A |
0 |
0 |
ropa-deportiva |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 514 |
316 |
316/514 |
|
0 |
A |
0 |
0 |
remeras-musculosas-y-chombas |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 513 |
316 |
316/513 |
|
0 |
A |
0 |
0 |
polleras |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 512 |
316 |
316/512 |
|
0 |
A |
0 |
0 |
pantalones |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 510 |
316 |
316/510 |
|
0 |
A |
0 |
0 |
kimonos |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 509 |
316 |
316/509 |
|
0 |
A |
0 |
0 |
indumentaria-laboral-y-escolar |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 508 |
316 |
316/508 |
|
0 |
A |
0 |
0 |
enteritos |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 507 |
316 |
316/507 |
|
0 |
A |
0 |
0 |
carteras-mochilas-y-equipajes |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 506 |
316 |
316/506 |
|
0 |
A |
0 |
0 |
calzas-y-leggings |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 505 |
316 |
316/505 |
|
0 |
A |
0 |
0 |
bermudas-y-shorts |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 504 |
316 |
316/504 |
|
0 |
A |
0 |
0 |
accesorios-de-moda |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 503 |
316 |
316/503 |
|
0 |
A |
0 |
0 |
abrigos |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 353 |
316 |
316/353 |
Blusas |
0 |
A |
0 |
0 |
blusas |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 359 |
316 |
316/359 |
Calzado |
0 |
A |
0 |
0 |
calzado |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 349 |
316 |
316/349 |
Camisas |
0 |
A |
0 |
0 |
camisas |
316 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |