mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #20638] [CLOSED] perf: defer profile_image_url in user list endpoints #64570
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/20638
Author: @Classic298
Created: 1/13/2026
Status: ❌ Closed
Base:
dev← Head:profile-image-perf📝 Commits (2)
3b33f18perf: defer profile_image_url in user list endpoints150d68csimplified📊 Changes
1 file changed (+11 additions, -4 deletions)
View changed files
📝
backend/open_webui/models/users.py(+11 -4)📄 Description
Summary
Optimizes the user list API endpoints by preventing large base64 profile image data from being fetched from the database and serialized to JSON responses.
Problem
The /api/v1/users/ endpoint was taking 1.5-2 seconds to return just 30 users because each user's profile_image_url field contained embedded base64 image data (~35KB per user), resulting in ~1MB response payloads.
Solution
Changes
Impact
Non-breaking
The frontend already uses the /api/v1/users/{id}/profile/image endpoint for displaying avatars, so this change is transparent to clients.
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.