fix(messages): sync exact channel pinned counts
This commit is contained in:
parent
b742450938
commit
e75fd04a28
9 changed files with 232 additions and 62 deletions
|
|
@ -0,0 +1 @@
|
|||
DROP INDEX CONCURRENTLY IF EXISTS public.channel_messages_live_pinned_idx;
|
||||
3
deploy/migrations/0149_channel_live_pinned_index.up.sql
Normal file
3
deploy/migrations/0149_channel_live_pinned_index.up.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
CREATE INDEX CONCURRENTLY IF NOT EXISTS channel_messages_live_pinned_idx
|
||||
ON public.channel_messages (channel_id, id DESC)
|
||||
WHERE pinned AND NOT deleted;
|
||||
Loading…
Add table
Add a link
Reference in a new issue