Fix performance of retrieving path
This commit is contained in:
parent
6facbd5c96
commit
f272bc6dcb
1 changed files with 1 additions and 1 deletions
|
|
@ -477,10 +477,10 @@ impl EuphRequest {
|
|||
SELECT room, parent
|
||||
FROM euph_msgs
|
||||
JOIN path USING (room, id)
|
||||
WHERE parent IS NOT NULL
|
||||
)
|
||||
SELECT id
|
||||
FROM path
|
||||
WHERE id IS NOT NULL
|
||||
ORDER BY id ASC
|
||||
",
|
||||
)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue