Skip to content

Commit b880a24

Browse files
committed
PR Feedback; Use an INNER JOIN
1 parent b9fd346 commit b880a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ impl PostgresConnection {
749749
SELECT tag FROM parents
750750
)
751751
-- Only get the jobs of in_progress requests
752-
SELECT * FROM job_queue WHERE job_queue.request_tag IN (SELECT * FROM requests)
752+
SELECT * FROM job_queue INNER JOIN requests ON job_queue.request_tag = requests.tag
753753
")).await.unwrap(),
754754
}),
755755
conn,

0 commit comments

Comments
 (0)