mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-10 16:33:11 -06:00
Add database index for data retrieval
This commit is contained in:
parent
5aa58f924f
commit
fd5fc90cc4
|
|
@ -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 = "" +
|
||||
|
|
|
|||
Loading…
Reference in a new issue