Query time 0.00144
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.97"
},
"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": 14,
"rows_produced_per_join": 0,
"filtered": "0.36",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "0.01",
"prefix_cost": "4.90",
"data_read_per_join": "165"
},
"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 '324/%') 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.92",
"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": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "4.97",
"data_read_per_join": "260"
},
"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 |
| 739 |
324 |
324/739 |
Arquitectura y Diseño |
0 |
A |
0 |
0 |
arquitectura-y-diseno |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 757 |
324 |
324/757 |
Embalaje y Logística |
0 |
A |
0 |
0 |
embalaje-y-logistica |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 758 |
324 |
324/758 |
Equipamiento Médico |
0 |
A |
0 |
0 |
equipamiento-medico |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 759 |
324 |
324/759 |
Equipamiento para Comercios |
0 |
A |
0 |
0 |
equipamiento-para-comercios |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 364 |
324 |
324/364 |
Equipamiento para Oficinas |
0 |
A |
0 |
0 |
equipamiento-para-oficinas |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 760 |
324 |
324/760 |
Gastronomía y Hotelería |
0 |
A |
0 |
0 |
gastronomia-y-hoteles |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 761 |
324 |
324/761 |
Gráfica e Impresión |
0 |
A |
0 |
0 |
grafica-e-impresion |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 762 |
324 |
324/762 |
Herramientas Industriales |
0 |
A |
0 |
0 |
herramientas-industriales |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 766 |
324 |
324/766 |
Otros |
0 |
A |
0 |
0 |
otros |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 763 |
324 |
324/763 |
Publicidad y Promoción |
0 |
A |
0 |
0 |
publicidad-y-promocion |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 366 |
324 |
324/366 |
Seguridad Laboral |
0 |
A |
0 |
0 |
seguridad-laboral |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 764 |
324 |
324/764 |
Textil y Calzado |
0 |
A |
0 |
0 |
textil-y-calzado |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 765 |
324 |
324/765 |
Uniformes y Ropa de Trabajo |
0 |
A |
0 |
0 |
uniformes-y-ropa-de-trabajo |
324 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |