Query time 0.00188
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.58"
},
"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": 13,
"rows_produced_per_join": 0,
"filtered": "0.38",
"cost_info": {
"read_cost": "3.25",
"eval_cost": "0.01",
"prefix_cost": "4.55",
"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 '328/%') 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": "4.57",
"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": "4.59",
"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 |
| 394 |
328 |
328/394 |
|
0 |
A |
0 |
0 |
insumos-ganaderos |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 403 |
328 |
328/403 |
|
0 |
A |
0 |
0 |
otros |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 402 |
328 |
328/402 |
|
0 |
A |
0 |
0 |
semillas |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 401 |
328 |
328/401 |
|
0 |
A |
0 |
0 |
riego |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 400 |
328 |
328/400 |
|
0 |
A |
0 |
0 |
repuestos-maquinaria-agricola |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 399 |
328 |
328/399 |
|
0 |
A |
0 |
0 |
proteccion-de-cultivos |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 398 |
328 |
328/398 |
|
0 |
A |
0 |
0 |
produccion-animal |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 397 |
328 |
328/397 |
|
0 |
A |
0 |
0 |
maquinaria-forrajera |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 396 |
328 |
328/396 |
|
0 |
A |
0 |
0 |
maquinaria-agricola |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 395 |
328 |
328/395 |
|
0 |
A |
0 |
0 |
lubricantes-y-fluidos |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 385 |
328 |
328/385 |
|
0 |
A |
0 |
0 |
agricultura-de-precision |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 393 |
328 |
328/393 |
|
0 |
A |
0 |
0 |
insumos-agricolas |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 392 |
328 |
328/392 |
|
0 |
A |
0 |
0 |
infraestructura-rural |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 391 |
328 |
328/391 |
|
0 |
A |
0 |
0 |
herramientas-de-trabajo |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 390 |
328 |
328/390 |
|
0 |
A |
0 |
0 |
fertilizantes |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 389 |
328 |
328/389 |
|
0 |
A |
0 |
0 |
energia-renovable |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 388 |
328 |
328/388 |
|
0 |
A |
0 |
0 |
apicultura |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 387 |
328 |
328/387 |
|
0 |
A |
0 |
0 |
animales |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 386 |
328 |
328/386 |
|
0 |
A |
0 |
0 |
almacenaje |
328 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |