mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #10807] Performance degradation with external databases #16038
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 @TobiasGoerke on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10807
Description
When using external PostgreSQL instances (Azure Flexible Server/Google Cloud SQL), Open WebUI becomes severely sluggish – simple actions like opening a chat take 10-15 seconds.
The core issue stems from:
get_user_by_id,update_user_last_active_by_id) + 2+ endpoint-specific queries per requestExample Breakdown
For
get_chat_tags_by_id:Key Questions
Query Log
Here's all queries launched for one page reload (61 queries):
queries.log
Thanks!