fix: add index for GetProvisionerLogsByIDBetween (#5020)

This commit is contained in:
Colin Adler
2022-11-16 14:32:29 -06:00
committed by GitHub
parent da758ba712
commit e7f1192614
6 changed files with 12 additions and 8 deletions
@@ -8,7 +8,7 @@ WHERE
AND (
id > @created_after
OR id < @created_before
) ORDER BY id;
) ORDER BY id ASC;
-- name: InsertProvisionerJobLogs :many
INSERT INTO
+3 -3
View File
@@ -23,9 +23,9 @@ WHERE
AND nested.completed_at IS NULL
AND nested.provisioner = ANY(@types :: provisioner_type [ ])
ORDER BY
nested.created_at FOR
UPDATE
SKIP LOCKED
nested.created_at
FOR UPDATE
SKIP LOCKED
LIMIT
1
) RETURNING *;