[PR #10809] [MERGED] feat: update get_current_user to refresh last active timestamp asynchronously #9393

Closed
opened 2025-11-11 18:21:28 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/10809
Author: @TobiasGoerke
Created: 2/26/2025
Status: Merged
Merged: 2/26/2025
Merged by: @tjbck

Base: devHead: feat/update_timestamp_asynchronously


📝 Commits (1)

  • 76891f4 feat: update get_current_user to refresh last active timestamp asynchronously

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 backend/open_webui/utils/auth.py (+5 -2)

📄 Description

Updating the users' last activity asynchronously has significant performance implications.
It allows users to be authenticated with two less db queries to be waited for.
For a page reload, this means there's 40-60 fewer queries waited for.

In my setup, page load time have decreased about 45%.

Please see https://github.com/open-webui/open-webui/discussions/10808 for more info.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/10809 **Author:** [@TobiasGoerke](https://github.com/TobiasGoerke) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 2/26/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat/update_timestamp_asynchronously` --- ### 📝 Commits (1) - [`76891f4`](https://github.com/open-webui/open-webui/commit/76891f4760a3a7e7df859057a6e316f7b195f1f2) feat: update get_current_user to refresh last active timestamp asynchronously ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/auth.py` (+5 -2) </details> ### 📄 Description Updating the users' last activity asynchronously has significant performance implications. It allows users to be authenticated with two less db queries to be waited for. For a page reload, this means there's 40-60 fewer queries waited for. In my setup, page load time have decreased about 45%. Please see https://github.com/open-webui/open-webui/discussions/10808 for more info. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:21:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#9393