zulip/zulip

Optimize topic cache calculation for rendering `near`/`with` links in automated notices after moving topics.

Open

#33 276 ouverte le 31 janv. 2025

Voir sur GitHub
 (24 commentaires) (0 réactions) (0 assignés)Python (19 672 stars) (7 339 forks)batch import
area: message-editing (topics)area: performancehelp wanted

Description

This requires #30644 to be merged. See https://github.com/zulip/zulip/pull/30644#discussion_r1785332141 for details, but we might be able to use message IDs we just generated to prepopulate the topic cache to avoid extra queries when moving messages.

It might not be worth it; the queries are cheap and it would be potentially messy plumbing. I won't be certain until I see what the plumbing needs to look like.

But given that message-moving is a high importance code path that already has a lot of queries, it could be worth it.

Guide contributeur