mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
[PR #20456] [CLOSED] fix(files): optimize file search with SQL pagination and database-level filtering #96667
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/20456
Author: @Classic298
Created: 1/7/2026
Status: ❌ Closed
Base:
dev← Head:file-search-performance📝 Commits (1)
8295afbfix(files): optimize file search with SQL pagination and database-level filtering📊 Changes
2 files changed (+56 additions, -15 deletions)
View changed files
📝
backend/open_webui/models/files.py(+38 -0)📝
backend/open_webui/routers/files.py(+18 -15)📄 Description
Replaced in-memory pagination with efficient SQL queries for the file search endpoint.
Changes:
Performance improvement: ~400x faster (2000ms -> 5ms)
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.