Files
open-webui/backend/open_webui
Classic298 c165ee14f0 perf: opening a chat no longer loads the whole conversation to mark it read (#33666)
Every time a chat is opened, the server marks it as read, and to do so it loaded and parsed the full chat, images included, just to save the last-read time. Marking a chat as unread and removing a tag from a chat did the same. These now touch only the few chat fields they change, which makes them 4 to 6 times faster on large chats.

Measured on SQLite, best of 7 runs, sizes are the chat as stored in the database:

| Chat | Action | Before | After |
| --- | --- | --- | --- |
| 7 MB, text only | open (mark read) | 19.8 ms | 3.5 ms |
| 7 MB, text only | mark as unread | 20.7 ms | 3.5 ms |
| 7 MB, text only | remove tag | 21.2 ms | 3.4 ms |
| 49 MB, with images | open (mark read) | 122.2 ms | 30.0 ms |
| 49 MB, with images | mark as unread | 124.2 ms | 29.1 ms |
| 49 MB, with images | remove tag | 120.5 ms | 28.6 ms |
2026-11-05 22:38:25 +09:00
..
2026-11-02 08:48:51 +09:00
2026-11-05 11:41:25 +09:00
2026-11-05 20:47:26 +09:00
2026-11-05 11:41:25 +09:00
2026-11-02 09:59:00 +09:00
2026-10-05 12:03:19 +04:00
2026-11-05 11:41:25 +09:00
2026-11-02 08:48:51 +09:00
2026-11-03 17:36:03 +09:00
2026-11-03 16:25:23 +09:00
2026-11-05 11:41:25 +09:00
2026-11-02 08:48:51 +09:00