mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-28 14:57:28 +00:00
core: add index for reading scoped chats stats (#5876)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user