mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
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/22243
Author: @batrapulkit
Created: 3/4/2026
Status: ❌ Closed
Base:
dev← Head:fix/api-memory-pagination📝 Commits (1)
0d648e1fix: implement server-side pagination for chats/files/memories (#22206)📊 Changes
4 files changed (+113 additions, -22 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+60 -12)📝
backend/open_webui/models/feedbacks.py(+22 -3)📝
backend/open_webui/models/memories.py(+26 -4)📝
backend/open_webui/models/messages.py(+5 -3)📄 Description
Summary: Fixes critical OOM crashes (#22206) by implementing server-side pagination and optimizing memory-intensive database queries.
The Problem:
High-volume endpoints like
/api/v1/chats/all,/api/v1/memories/, and/api/v1/evaluations/load entire datasets into memory at once, causing OOM crashes on enterprise-scale instances.The Fix:
upstream/devand squashed into a single commit.skipandlimitto SQLAlchemy queries inchats.py,feedbacks.py,memories.py, andmessages.py.delete_shared_chats_by_user_idwith a correlated subquery.Testing & Validation:
Contributor License Agreement
I certify that this contribution is my own original work and that I have the right to submit it under the project's license.
contributor license agreement
I agree to the terms of the contributor license agreement.
Fixes #22206
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.