Files
open-webui/backend/open_webui/models
Classic298andGitHub 9f748cb5c9 perf: channel message pages load much faster when many messages are replies (#33691)
Opening a channel looked up every replied-to message one by one, so a page of 50 mostly-reply messages ran well over a hundred database queries. The replied-to messages and their authors are now fetched together, and the response is unchanged. Measured on a local SQLite database with a 50-message page where 46 messages are replies:

| | before | after |
|---|---|---|
| queries | 147 | 3 |
| time (median) | 46 ms | 1.9 ms |
2026-11-05 06:43:43 +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