Files
mostlymatter/server/channels/api4
Agniva De Sarker bd8774bdce MM-61130: Use a channelMember map at web_hub level (#28810)
Tests at very high scale indicates that the iteration
of all connections during websocket broadcast starts
to become a bottleneck.

To optimize this, we move the channelMember cache from
inside web_conn.go to the hubConnectionIndex.

This involves adding a new map keyed by the channelID
and containing all webConns where the user is a member
of that channel. Subsequently, a new method needed to
be added to invalidate the cache which previously
used to happen in web_conn.

And as a last step, we remove the cache from web_conn
to reduce SQL queries to the DB.

https://mattermost.atlassian.net/browse/MM-61130

```release-note
NONE
```
2024-11-08 09:57:54 +05:30
..
2024-11-04 11:39:35 +05:30
2024-10-07 21:02:16 +02:00
2024-10-02 12:16:10 +02:00
2024-10-04 07:14:48 +02:00
2023-03-22 17:22:27 -04:00
2024-10-02 15:32:49 +02:00
2024-10-09 13:27:39 +02:00
2024-10-04 17:51:38 +02:00
2024-10-04 07:11:24 +02:00
2024-10-04 19:12:32 +02:00
2024-10-09 14:56:22 +02:00
2024-11-04 11:39:35 +05:30
2024-10-08 10:46:22 +02:00
2024-10-09 11:58:16 +02:00
2024-10-15 08:52:03 +02:00
2024-10-07 13:37:46 +00:00
2024-10-08 09:23:53 +02:00
2024-10-11 16:16:46 +02:00
2024-10-11 18:26:40 +02:00
2024-10-17 15:22:01 +02:00
2024-10-08 12:23:08 +02:00