Files
open-webui/backend/open_webui
Classic298 b017958361 perf: keep presence and access updates from stalling instances that use Redis (#35248)
With Redis as the websocket manager, opening or leaving a chat or note, moving the cursor in a shared note, disconnecting, and access changes each read through the whole shared session list. While that ran the worker answered no one else, so on an instance with thousands of connected sessions everyone on that worker saw stalls on every one of those events. The session list is now read batch by batch without holding up other users, and presence and access results are unchanged. Setups without Redis keep reading the in-memory list directly.

<table>
<tr><th>Sessions</th><th>Redis round trip</th><th>Longest stall before</th><th>Longest stall after</th></tr>
<tr><td>5,000</td><td>local</td><td>8 to 10 ms</td><td>about 2 ms</td></tr>
<tr><td>5,000</td><td>1 ms</td><td>40 to 46 ms</td><td>about 2 ms</td></tr>
<tr><td>20,000</td><td>1 ms</td><td>150 to 169 ms</td><td>2 to 3 ms</td></tr>
</table>

Relates to #35245
2026-11-30 22:55:25 +04:00
..
2026-11-17 23:28:54 +09:00
2026-11-30 22:35:04 +04:00
2026-11-30 22:35:04 +04:00
2026-11-25 03:13:19 +04:00
2026-10-05 12:03:19 +04:00
2026-11-30 22:49:49 +04:00
2026-11-30 21:03:32 +04:00
2026-11-24 19:10:42 +04:00
2026-11-30 22:40:50 +04:00
2026-11-03 16:25:23 +09:00
2026-11-02 08:48:51 +09:00