zulip/zulip

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

Ouverte

#33 276 ouverte le 31 janv. 2025

 (24 commentaires) (0 réaction) (0 personne assignée)Python (7 339 forks)batch import
area: message-editing (topics)area: performancehelp wanted

Métriques du dépôt

Stars
 (19 672 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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