Timothy Jaeryang Baek
f7406ff576
refac
2026-02-09 13:28:14 -06:00
Timothy Jaeryang Baek
3ae44d11a5
refac
2026-02-08 22:37:13 -06:00
Timothy Jaeryang Baek
b147616080
refac
2026-02-08 21:32:12 -06:00
Classic298
68e257849d
perf: optimize database queries in functions, feedbacks, and groups ( #21019 )
2026-01-29 21:44:50 +04:00
Timothy Jaeryang Baek
de0cbb9073
refac
2026-01-12 21:56:02 +04:00
Timothy Jaeryang Baek
5a075a2c83
fix: members only groups
2026-01-12 21:53:41 +04:00
Classic298
732d9b484d
fix: resolve N+1 query pattern in users endpoint ( #20427 )
...
## Summary
Fixed N+1 query pattern in the `/api/v1/users` endpoint where groups were being fetched for each user individually.
### Problem
The `GET /api/v1/users` endpoint called `Groups.get_groups_by_member_id()` for each user, resulting in:
- 1 query for users
- N queries for groups (one per user)
### Solution
Added a new `Groups.get_groups_by_member_ids()` method that fetches groups for multiple users in a single query using SQL `IN` clause and `JOIN`.
### Changes
- **[groups.py](open_webui/models/groups.py)**: Added `get_groups_by_member_ids()` method
- **[users.py](open_webui/routers/users.py)**: Updated endpoint to use bulk method
### Result
- Before: 1 + N queries
- After: 2 queries total (1 for users, 1 for all groups)
2026-01-06 21:26:14 +04:00
Timothy Jaeryang Baek
ca514cd3ed
refac: group share to settings
2026-01-05 05:32:56 +04:00
Timothy Jaeryang Baek
2041ab483e
refac/enh: db session sharing
2025-12-28 22:00:44 +04:00
Classic298
823b9a6dd9
chore/perf: Remove old SRC level log env vars with no impact ( #20045 )
...
* Update openai.py
* Update env.py
* Merge pull request open-webui#19030 from open-webui/dev (#119 )
Co-authored-by: Tim Baek <tim@openwebui.com >
Co-authored-by: Claude <noreply@anthropic.com >
---------
Co-authored-by: Tim Baek <tim@openwebui.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-20 08:16:14 -05:00
Timothy Jaeryang Baek
c1d760692f
refac: db group
2025-11-28 22:48:58 -05:00
Timothy Jaeryang Baek
baa1e07aec
refac
2025-11-25 04:37:58 -05:00
Timothy Jaeryang Baek
7be750bcbb
feat/enh: group share setting
2025-11-20 19:12:56 -05:00
Timothy Jaeryang Baek
bc576782d7
refac: group members backend
2025-11-17 05:09:06 -05:00
Timothy Jaeryang Baek
edf7a3d142
refac
2025-08-26 22:05:27 +04:00
Timothy Jaeryang Baek
8b425a6295
refac
2025-08-26 21:56:52 +04:00
Timothy Jaeryang Baek
9634df4347
refac/enh: group add/remove users endpoints
2025-07-17 01:50:37 +04:00
Timothy Jaeryang Baek
371bdd7afa
refac
2025-06-11 20:40:19 +04:00
Timothy Jaeryang Baek
cce5f024bd
feat: WEBUI_AUTH_TRUSTED_GROUPS_HEADER
2025-05-24 23:17:12 +04:00
Timothy Jaeryang Baek
45f4bc18f8
refac: access controls
2025-01-20 23:20:47 -08:00
Timothy Jaeryang Baek
aa442f694b
enh: validate user id before saving group
2025-01-20 23:09:55 -08:00
Timothy Jaeryang Baek
217e3a13c8
feat: Add ability to change permissions on group creation API
2025-01-17 12:03:24 -08:00
Timothy Jaeryang Baek
d701b69e05
enh: channel notification
2024-12-25 00:53:25 -07:00
Timothy Jaeryang Baek
d3d161f723
wip
2024-12-10 00:54:13 -08:00