mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
chore: remove unused workspace_owner_count field (#5958)
This added unnecessary database load, because it's not used!
This commit is contained in:
@@ -223,19 +223,6 @@ WHERE
|
||||
AND LOWER("name") = LOWER(@name)
|
||||
ORDER BY created_at DESC;
|
||||
|
||||
-- name: GetWorkspaceOwnerCountsByTemplateIDs :many
|
||||
SELECT
|
||||
template_id,
|
||||
COUNT(DISTINCT owner_id)
|
||||
FROM
|
||||
workspaces
|
||||
WHERE
|
||||
template_id = ANY(@ids :: uuid [ ])
|
||||
-- Ignore deleted workspaces
|
||||
AND deleted != true
|
||||
GROUP BY
|
||||
template_id;
|
||||
|
||||
-- name: InsertWorkspace :one
|
||||
INSERT INTO
|
||||
workspaces (
|
||||
|
||||
Reference in New Issue
Block a user