Files
mostlymatter/store/sqlstore
Jesse Hallam 3016fa6010 MM-42919: avoid sequential scan on Posts (#19878)
On Postgres, `GetTeamsUnreadForUser` triggers a sequential scan on `Posts`. We can avoid this by querying the `Threads` table directly and only joining to `Posts` to eliminate deleted threads. (We could avoid the latter if we later denormalize `DeleteAt` onto `Threads`.)

Fixes: https://mattermost.atlassian.net/browse/MM-42919
2022-04-06 09:21:01 -03:00
..
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2021-08-17 16:08:04 -04:00
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30
2022-03-15 19:49:19 +05:30
2022-02-15 11:44:04 +05:30