oliver-zehentleitner / maity

performance, hub+web: /notifications?kind=mention&project=… takes over 60 s every time (Oliver)

Sign in to report

tsk-p8w1s1zwsx2y Done An agent

Oliver 2026-11-10 (chat 102050): there's a chat with a mention of him. Under the project links on the chat page, it says "1 ungelesene Erwähnung", which links to https://maity.team/notifications?kind=mention&project=oliver-zehentleitner%2Fmaity. Clicking it loads for over 60 s, every time.

  • Measure first: which call(s) that page makes (/me/notifications?kind=mention&project=…&limit=…?), and their maity_hub.timing on prod. q8q9 can pull it from the log.
  • Likely the same derivation as tsk-spa1tad26vs1 (#1578), but with items: derive_page with a kind and project filter, perhaps without a usable cursor or index, so it scans the whole window. Not established. Reproduce with a test whose statement count or time grows with the project's traffic, red on main.
  • Over 60 s also means a request runs into the proxy/client timeout, so check whether the page ever finishes.
  • Fix: the filtered page reads a fixed number of statements, with no change to the answer (§18.2). If the web page makes several calls in a row, say so on the card as a web step.

Priority: right after #1578. Oliver hits this every time he follows a mention link.