Files
open-webui/backend/open_webui/models
Classic298 332f6a2586 perf: channel list loads much faster with many channels (#33690)
Opening the channel list ran several database queries for every channel, so the load time grew with the number of channels. The last message time, unread count, mute state and direct message participants are now fetched for all channels at once, so the number of queries stays the same no matter how many channels a user has. The response is unchanged.

Measured on SQLite with an admin user in 23 visible channels (50 seeded), 2000 messages per channel:

| | before | after |
|---|---|---|
| database queries | 93 | 9 |
| response time | 255 ms | 47 ms |
2026-11-05 06:43:25 +09:00
..
2026-11-02 08:48:51 +09:00
2026-10-26 16:09:25 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-03 17:36:03 +09:00
2026-10-31 16:50:01 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-10-09 18:37:55 +04:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-07-24 01:54:36 -04:00
2026-10-09 17:05:53 +04:00
2026-11-02 11:37:00 +09:00
2026-11-02 08:48:51 +09:00
2026-10-31 16:50:01 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-10-09 16:31:34 +04:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-10-09 18:37:55 +04:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00