open-webui/backend/open_webui
Classic298 f0e0cfcf02
perf: avoid redundant knowledge re-fetch in update_knowledge_access_by_id (#23799)
After set_access_grants, the handler was reloading the same knowledge
record via get_knowledge_by_id, which triggers an extra SELECT plus a
nested fetch of access grants. set_access_grants already returns the
newly-written grants and the local knowledge object is otherwise
unchanged, so update it in place and reuse it for the response.

https://claude.ai/code/session_01S18Lgqbih7Ry2JZUUv8TxF

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-17 14:44:42 +09:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac 2026-04-17 11:27:58 +09:00
migrations chore: format 2026-04-17 14:28:18 +09:00
models chore: format 2026-04-17 14:28:18 +09:00
retrieval chore: format 2026-04-17 14:28:18 +09:00
routers perf: avoid redundant knowledge re-fetch in update_knowledge_access_by_id (#23799) 2026-04-17 14:44:42 +09:00
socket refac 2026-04-17 13:29:51 +09:00
static refac 2026-03-23 23:39:52 -05:00
storage refac 2026-04-12 19:08:30 -05:00
test refac 2026-03-17 17:58:01 -05:00
tools refac 2026-04-17 12:55:56 +09:00
utils refac 2026-04-17 14:35:13 +09:00
__init__.py refac (#22987) 2026-03-24 15:41:26 -05:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: add RAG_RERANKING_BATCH_SIZE configuration option 2026-04-17 08:35:45 +09:00
constants.py chore: format 2026-04-14 17:27:31 -05:00
env.py refac 2026-04-17 11:27:58 +09:00
functions.py refac 2026-04-17 14:15:36 +09:00
main.py refac 2026-04-17 14:15:36 +09:00
tasks.py refac 2026-03-17 17:58:01 -05:00