mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21591] [MERGED] perf: Avoid loading full chat JSON blob for pinned/archived/shared list endpoints #49201
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/21591
Author: @Classic298
Created: 2/19/2026
Status: ✅ Merged
Merged: 2/19/2026
Merged by: @tjbck
Base:
dev← Head:chat-list-select📝 Commits (2)
1810b69Avoid loading full chat JSON blob for pinned/archived/shared list endpoints59df676Merge branch 'dev' into chat-list-select📊 Changes
2 files changed (+47 additions, -26 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+39 -10)📝
backend/open_webui/routers/chats.py(+8 -16)📄 Description
These endpoints only return title, id, and timestamps (ChatTitleIdResponse /
SharedChatResponse) but were loading full ChatModel objects including the
entire conversation JSON blob. Use .with_entities() to select only the
needed columns, matching the existing pattern in get_chat_title_id_list_by_user_id.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.