Add database index for data retrieval

This commit is contained in:
Brendan Abolivier 2017-07-31 16:20:07 +01:00
parent 5aa58f924f
commit fd5fc90cc4
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -37,6 +37,8 @@ CREATE TABLE IF NOT EXISTS account_data_type (
-- We don't want two entries of the same type for the same user
CONSTRAINT account_data_unique UNIQUE (user_id, room_id, type)
);
CREATE UNIQUE INDEX IF NOT EXISTS account_data_id_idx ON account_data(id);
`
const insertAccountDataSQL = "" +