Files
open-webui/backend/open_webui
Classic298andGitHub d00a02ff23 perf: faster filter lookups on chat requests when Redis is enabled (#33668)
With Redis enabled, each chat request and each title or tag generation looks up which pipeline filters apply, and every lookup parsed the full model list stored in Redis from scratch. Each worker now keeps the parsed list and parses it again only when the model list changes. The lookup returns the same filters as before, at the cost of about 3 MB of memory per worker for 1000 models.

Measured per lookup against a local Redis; the larger list size in each pair comes from models with profile images:

| Models | Model list size | Before | After |
| --- | --- | --- | --- |
| 200 | 0.17 MB | 0.42 ms | 0.05 ms |
| 200 | 2.2 MB | 1.16 ms | 0.05 ms |
| 1000 | 0.83 MB | 2.43 ms | 0.06 ms |
| 1000 | 11 MB | 6.21 ms | 0.10 ms |
2026-11-04 05:06:15 +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-11-03 20:55:06 +09:00
2026-11-02 09:59:00 +09:00
2026-10-05 12:03:19 +04:00
2026-11-02 11:37:00 +09:00
2026-11-03 16:31:24 +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-03 16:31:24 +09:00
2026-11-02 08:48:51 +09:00