Files
mostlymatter/store/sqlstore
Jesse Hallam 5a0a3e6d13 Inline ThreadStore.MarkAllAsUnreadByTeam (#20958)
* Add teamId to Threads table

* Get rid of multiple teamId reads

* Fix failed test

* Inline ThreadStore.MarkAllAsUnreadByTeam

The query to `MarkAllAsUnreadByTeam` first fetched all thread memberships, then fed just the ids back to a second query to ensure all are marked as unread. Optimize this by simply doing a single `UPDATE` query with the necessary joins.

Co-authored-by: iomodo <wineson@gmail.com>
2022-11-09 14:00:07 -04:00
..
2022-03-15 19:49:19 +05:30
2021-08-17 16:08:04 -04:00
2022-03-15 19:49:19 +05:30