Add note receiver index
Only makes a difference if there is a large amount of notes in the database. Better be safe than sorry.
This commit is contained in:
@@ -8,4 +8,5 @@ CREATE TABLE note(
|
||||
deleted smallint NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};
|
||||
CREATE INDEX idx_note_received ON note(receiver);
|
||||
GRANT SELECT, INSERT, UPDATE ON note TO ${server-username};
|
||||
|
||||
Reference in New Issue
Block a user