mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: increase fileCache hit rate in autobuilds lifecycle (#18507)
`wsbuilder` hits the file cache when running validation. This solution is imperfect, but by first sorting workspaces by their template version id, the cache hit rate should improve.
This commit is contained in:
@@ -642,7 +642,8 @@ FROM pending_workspaces, building_workspaces, running_workspaces, failed_workspa
|
||||
-- name: GetWorkspacesEligibleForTransition :many
|
||||
SELECT
|
||||
workspaces.id,
|
||||
workspaces.name
|
||||
workspaces.name,
|
||||
workspace_builds.template_version_id as build_template_version_id
|
||||
FROM
|
||||
workspaces
|
||||
LEFT JOIN
|
||||
|
||||
Reference in New Issue
Block a user