mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #23798] [MERGED] perf(chats): select only meta column in get_chat_tags_by_id_and_user_id #43005
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23798
Author: @Classic298
Created: 4/16/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @tjbck
Base:
dev← Head:claude/optimize-chat-tags-query-WPOXR📝 Commits (1)
4f29bc5perf(chats): select only meta column in get_chat_tags_by_id_and_user_id📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+4 -2)📄 Description
Avoid loading the full Chat row (including the potentially large
chatJSON column) just to read tag IDs frommeta.tags. Issue a narrow SELECT onChat.metainstead, which is much cheaper for chats with large message histories.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.