mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
Typing indicators, sending a message, shared links, comments and file access all check whether the user may access the chat, and each check loaded the full chat, images included, only to look at who owns it and which folder it is in. On large chats that delayed every other request on the same server process by up to a few hundred milliseconds per check. The check now reads just those few fields, and who gets access is unchanged. Measured on SQLite, best of 5 runs, sizes are the chat as stored in the database: | Chat | Checked for | Before | After | | --- | --- | --- | --- | | 7 MB, text only | the chat owner | 34.6 ms | 0.36 ms | | 7 MB, text only | a user with access through a shared folder | 35.1 ms | 2.58 ms | | 57 MB, with images | the chat owner | 249.8 ms | 0.72 ms | | 57 MB, with images | a user with access through a shared folder | 249.0 ms | 2.80 ms |