Add stream_id index

pull/199/head
Erik Johnston 2015-07-02 13:18:41 +01:00
parent bd1236c0ee
commit ac78e60de6
1 changed files with 5 additions and 1 deletions

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