Fix performance of retrieving path

This commit is contained in:
Joscha 2022-06-24 19:19:51 +02:00
parent 6facbd5c96
commit f272bc6dcb

View file

@ -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
",
)?