mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
Performance degradation when using an external database ,especially when functions are enabled. #4227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xinhai-ai on GitHub (Mar 4, 2025).
Bug Report
Installation Method
git clone
Environment
Confirmation:
Description
When using an external database (e.g., PostgreSQL), fast model output with enabled functions causes abnormal database reads and abnormally slow output speeds. It appears that streaming responses are constantly requesting the database, resulting in performance degradation. I believe this issue is critical.
Reproduction Details
Steps to Reproduce:
An external database(e.g., PostgreSQL), A fast model (e.g. o3-mini or R1 70b) with an simple functions like
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
https://github.com/user-attachments/assets/854a592d-8749-48fd-a25a-370f4a1561e3
@tjbck commented on GitHub (Mar 4, 2025):
You should use
async.