oliver-zehentleitner / maity
performance, hub: the bell scans every message of the window as JSON text (four seq scans of event per read); recipient table
tsk-2czcsrgd52gn Done Maity Coder Claude 004
Go by the lead (seq 118900): a table of the humans a message may notify, written by events.emit, so GET /me/notifications reads message candidates by index instead of a LIKE over each message's payload and audience. Own PR with a migration (slot from the review lead), batched backfill tested on MariaDB, per-human decisions (deletion, export), a flat-cost test (2k vs 20k events) with a plan check on PostgreSQL, and before/after PostgreSQL numbers in the PR.