mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17976] FIX: N+1 database query in feedbacks #11422
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/17976
Author: @rgaricano
Created: 10/1/2025
Status: 🔄 Open
Base:
dev← Head:dev-FIX_N1_in_feedbacks📝 Commits (7)
9e0b9c3FIX: N+1 database query in feedbacks9ec6e0bUpdate feedbacks.py - Code Format14d27d0Update evaluations.py - Code Format1b8240bUpdate evaluations.py - Code Format7e42f27Added ids_only & count parameters in get_all_feedbacks router1ed7a0dFix Format Code Issue4ccb8c7remove unwanted space added📊 Changes
2 files changed (+60 additions, -7 deletions)
View changed files
📝
backend/open_webui/models/feedbacks.py(+22 -0)📝
backend/open_webui/routers/evaluations.py(+38 -7)📄 Description
FIX: N+1 database query in feedbacks
Fix for solve the slowness when retrieving feedbacks, due to a N+1 database query problem in the implementation of evaluations endpoint.
Modify to use a single optimized query that joins feedback and user data.
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.