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:
1 parent
40667855b1
commit
7b152cdd91
5 files changed
+36
-12
No files matched your search
@@ -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