mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-27 20:52:30 +00:00
Add stream_id index
This commit is contained in:
parent
bd1236c0ee
commit
ac78e60de6
@ -33,6 +33,10 @@ CREATE TABLE IF NOT EXISTS receipts_linearized (
|
|||||||
event_id TEXT NOT NULL
|
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
|
room_id, receipt_type, user_id
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX receipts_linearized_id ON receipts_linearized(
|
||||||
|
stream_id
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user