Storage: Query stats within a namespace (#97403)
This commit is contained in:
@@ -5,6 +5,10 @@ SELECT
|
||||
COUNT(*),
|
||||
MAX({{ .Ident "resource_version" }})
|
||||
FROM {{ .Ident "resource" }}
|
||||
{{ if .Namespace }}
|
||||
WHERE 1 = 1
|
||||
AND {{ .Ident "namespace" }} = {{ .Arg .Namespace }}
|
||||
{{ end}}
|
||||
GROUP BY
|
||||
{{ .Ident "namespace" }},
|
||||
{{ .Ident "group" }},
|
||||
|
||||
Reference in New Issue
Block a user