Agniva De Sarker
6898b3d70f
Optimize TeamsUnread ( #19507 )
...
The GetTeamsUnreadForUser call would be called for every team switch.
In CRT mode, it would make a separate store call for every team, which
would run the 3 aggregate SQL queries in GetThreadsForUser.
This is suboptimal because the complexity is linearly proportional
to the number of teams.
We make the following optimizations:
1. Change the query to a single one which aggregates all teams.
2. The query originally used just 2 out of the 3 queries, so one
query was fully redundant. We remove that query in the new one.
3. Further analysis was done whether it makes sense to run the 2
queries synchronously or not. The load-tests didn't show any degradation
in running them concurrently, so we keep the same behavior.
```release-note
NONE
```
2022-02-17 09:24:39 +05:30
..
2021-08-12 16:45:03 +02:00
2021-09-01 14:43:12 +02:00
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-09 23:09:42 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-02-12 19:04:05 +05:30
2021-09-14 13:46:42 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2019-11-29 12:59:40 +01:00
2022-02-15 11:44:04 +05:30
2022-02-16 22:30:27 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-08-17 16:08:04 -04:00
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-08-17 11:18:33 +02:00
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-08-30 10:20:28 +05:30
2022-02-16 22:30:27 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2022-02-16 22:30:27 +05:30
2022-02-16 22:30:27 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-17 09:24:39 +05:30
2021-12-22 14:57:30 +05:30
2022-02-15 11:44:04 +05:30
2022-01-08 10:16:07 +02:00
2022-02-16 22:30:27 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30
2021-07-22 12:21:47 +05:30
2022-01-18 09:00:58 +03:00
2021-08-23 10:04:30 +05:30
2022-02-11 12:37:41 +05:30
2021-07-22 12:21:47 +05:30
2022-02-15 11:44:04 +05:30