core: add index for reading scoped chats stats (#5876)

This commit is contained in:
spaced4ndy
2025-05-07 12:50:27 +00:00
committed by GitHub
parent 79dadabf61
commit 6b71cd2ee9
4 changed files with 34 additions and 15 deletions
@@ -1038,3 +1038,11 @@ CREATE INDEX idx_chat_items_group_scope_item_ts ON chat_items(
group_scope_group_member_id,
item_ts
);
CREATE INDEX idx_chat_items_group_scope_item_status ON chat_items(
user_id,
group_id,
group_scope_tag,
group_scope_group_member_id,
item_status,
item_ts
);