open-webui/backend/open_webui/models
Sihyeon Jang c45201a8a2 perf: fix N+1 query issue in get_prompts method
- Replace individual user queries with batch fetching
- Use single query to fetch all required users at once
- Implement O(1) user lookup with dictionary mapping
- Reduce query count from 1+N to 1+1 pattern

Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:25:26 +09:00
..
auths.py refac: account details 2025-08-21 02:39:25 +04:00
channels.py feat: reactions 2024-12-30 23:06:34 -08:00
chats.py refac/enh: add performance indexes 2025-08-19 03:24:10 +04:00
feedbacks.py refactor: replace print statements with logging for better error tracking 2025-02-25 15:53:55 +01:00
files.py refactor: replace print statements with logging for better error tracking 2025-02-25 15:53:55 +01:00
folders.py enh: folder filter 2025-08-10 02:10:18 +04:00
functions.py refac 2025-08-21 22:02:11 +04:00
groups.py refac 2025-08-26 22:05:27 +04:00
knowledge.py wip 2024-12-10 00:54:13 -08:00
memories.py refac: memory handling 2025-07-20 15:00:24 +04:00
messages.py fix: channel thread 2025-01-02 20:48:50 -08:00
models.py feat: model sync endpoint 2025-07-28 13:06:05 +04:00
notes.py refac 2025-07-12 23:31:04 +04:00
prompts.py perf: fix N+1 query issue in get_prompts method 2025-09-03 05:25:26 +09:00
tags.py refac/enh: add performance indexes 2025-08-19 03:24:10 +04:00
tools.py refac 2025-08-21 22:02:11 +04:00
users.py refac: account details 2025-08-21 02:39:25 +04:00