You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This replaces active counts of room_users to get the active user count,
instead caching the current value in a new `rooms.active_users` column,
updating it every 10s during the cleanup task.
The count ended up being moderately expensive, (the most expensive
regular query we have right now since the earlier change on this
branch), and gets worse both as the count gets larger and as the table
gets increasingly fragmented. It isn't a noticeable problem *yet*
because legacy Session clients only query room info once in a while
(seemingly randomly) but new Session endpoints will hit this much more
often and so this preemptively addresses the issue.
0 commit comments