Add stream_id index

This commit is contained in:
Erik Johnston 2015-07-02 13:18:41 +01:00
parent bd1236c0ee
commit ac78e60de6

View File

@ -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
);