mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-30 18:59:49 +03:00
Add stream_id index
This commit is contained in:
parent
bd1236c0ee
commit
ac78e60de6
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@ CREATE TABLE IF NOT EXISTS receipts_linearized (
|
|||
event_id TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX receipts_linearized_room_tuple ON receipts_graph(
|
||||
CREATE INDEX receipts_linearized_room_tuple ON receipts_linearized(
|
||||
room_id, receipt_type, user_id
|
||||
);
|
||||
|
||||
CREATE INDEX receipts_linearized_id ON receipts_linearized(
|
||||
stream_id
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue