Create some indices
This commit is contained in:
parent
ce58e5b4be
commit
721461f7be
1 changed files with 6 additions and 0 deletions
|
|
@ -74,6 +74,12 @@ fn m1(tx: &mut Transaction) -> rusqlite::Result<()> {
|
|||
SELECT room, id
|
||||
FROM euph_msgs
|
||||
);
|
||||
|
||||
CREATE INDEX euph_idx_msgs_room_id_parent
|
||||
ON euph_msgs (room, id, parent);
|
||||
|
||||
CREATE INDEX euph_idx_msgs_room_parent_id
|
||||
ON euph_msgs (room, parent, id);
|
||||
",
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue